Skip to content

Latest commit

 

History

History
28 lines (21 loc) · 478 Bytes

README.md

File metadata and controls

28 lines (21 loc) · 478 Bytes

simple-mock-server

Getting started

  • Go to the folder with project
  • Install npm packages npm install
  • Run the script npm run mock-server

Getting started

GET http:\localhost:3000\api\books

Result:

{ "id": 1, "name": "Romeo and Juliet", "author": "William Shakespeare", "genre": "Love story" }

PUT http:\localhost:3000\api\book

Body:

{ "name": "Romeo and Juliet Rus", "author": "William Shakespeare", "genre": "Love story" }