Skip to content

Latest commit

 

History

History
32 lines (20 loc) · 1.17 KB

README.md

File metadata and controls

32 lines (20 loc) · 1.17 KB

mockaroo-examples

This repo contains Mockaroo schema and API handler script examples for below user cases

  • GET user
  • PATCH user
  • DELETE user
  • GET users

Usage

  1. Create free Mockaroo account here

Schemas Creation

  • Go to schemas page
  • Click on RESTORE FROM BACKUP and choose schemas from schemas directory in the repo

Mock API's Creation

  • Go to API's page
  • Update Route with one of routes in apis/ directory
  • Update handler script as well
  • Click CREATE MOCK API

Wrap up

Mockaroo is a powerful tool for generating mock data and creating mock APIs for testing purposes. By using the schema and API handler script examples provided in this repository, you can quickly set up mock APIs that mimic real-world scenarios. Whether you need to simulate GET, PATCH, or DELETE requests for individual users or retrieve a list of users, the examples here offer a starting point for creating your own mock APIs.

If you encounter any issues or have suggestions for improvement, feel free to open an issue or pull request on this repository.

Happy mocking!