Cool API Simulation is a project that implements JSON Server Repo in order to provide an easy way for calling an API without coding anything in the backend.
Install JSON Server
npm install -g json-server
Modify db.json
file as needed
{
"posts": [
{ "id": 1, "title": "json-server", "author": "typicode" }
],
"comments": [
{ "id": 1, "body": "some comment", "postId": 1 }
],
"profile": { "name": "typicode" }
}
Start JSON Server
json-server --watch db.json
Finally import API Simulation.postman_collection.json
file into Postman
This project uses the MIT License.