How To - Mockoon

download (1).png

Mockoon

Website: mockoon.com

Mockoon Documentation: mockoon.com/docs/latest/about

Install Mockoon

brew install --cask mockoon

Launch Mockoon

Open Mockoon application from Launchpad

Screen Shot 2021-01-06 at 1.04.52 AM.png

Create a Mock API

  • Create a new mock API, open the collapsible environments menu on the left and press the blue "plus" button

Screen Shot 2021-01-06 at 1.05.28 AM.png

  • Configure the API

Environment Name: Test API

Route: /hello

Response Body: {Greeting: "Hello World"}

Screen Shot 2021-01-06 at 1.07.17 AM.png

  • Click on the green "play" arrow in the header to start Mock API

Mock API is now available on localhost:3000/hello

  • Do a test call using cURL
curl http://localhost:3000/hello

If cURL is not installed then execute below command

brew install curl