Mocke

Mock that allows you to start a dynamic rest api to test and speed up the development of Frontend applications.
Donation - GitHub - Twitter


Endpoints

The endpoints with which you can do CRUD operations.

GET /{service}

It allows you to get the items from the first page of the specified service. To specify another page you can use the query page for example http://127.0.0.1:5000/products/?page=2

GET /{service}/all

It allows you to get all the items (of all the pages) of a service, for example http://127.0.0.1:5000/products/all

GET /{service}/{id}

It allows you to search by ID for an item of a service. for example http://127.0.0.1:5000/products/1

POST /{service}

It allows you to create an item and store it in a service. The request must have a body in JSON format which will be used to be the content of the item, for example http://127.0.0.1:5000/products with body { displayName: "Laptop", price: 5.00, colors: ["Black", "White", "Gray"], isAvailable: true }

PUT /{service}/{id}

It allows you to search and modify a previously saved item of a service. The request must contain a body in json format with all the fields to change, for example http://127.0.0.1:5000/products with body { price: 999.00, isAvailable: false }

DELETE /{service}/{id}

Allows you to search and remove an item from a service, for example http://127.0.0.1:5000/products/1