- 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
athttp://localhost:9000
- change the port number in case if you are using
9000
for 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