- Install node and npm (in case if you haven't).
- Open terminal and navigate to the folder and execute below commands.
npm installmockserver -p 9000 -m mocks- That should start a mock server and should show as below.
- Mockserver serving mocks {verbose:true} under
mocksathttp://localhost:9000 - change the port number in case if you are using
9000for anything else.
- 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