How To - Mockoon
Mockoon
Website: mockoon.com
Mockoon Documentation: mockoon.com/docs/latest/about
Install Mockoon
brew install --cask mockoon
Launch Mockoon
Open Mockoon application from Launchpad
Create a Mock API
- Create a new mock API, open the collapsible environments menu on the left and press the blue "plus" button
- Configure the API
Environment Name: Test API
Route: /hello
Response Body: {Greeting: "Hello World"}
- 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