Skip to content
This repository has been archived by the owner on Jan 13, 2021. It is now read-only.

Latest commit

 

History

History
15 lines (12 loc) · 628 Bytes

Readme.md

File metadata and controls

15 lines (12 loc) · 628 Bytes

Steps to start the server

  • Install node and npm (in case if you haven't).
  • Open terminal and navigate to the folder and execute below commands.
  • npm install
  • mockserver -p 9000 -m mocks
  • That should start a mock server and should show as below.
  • Mockserver serving mocks {verbose:true} under mocks at http://localhost:9000
  • change the port number in case if you are using 9000 for anything else.

Now you can do following API calls:

  • GET - http://localhost:9000/goals - gets all the goals
  • POST - http://localhost:9000/goals - creates a goal
  • DELETE - http://localhost:9000/goals - deletes a goal