Getting Started
Setup and make a request to a Mock in 5 minutes or less.
Last updated
Was this helpful?
Setup and make a request to a Mock in 5 minutes or less.
Last updated
Was this helpful?
Click the "Log In" menu item in the upper right
Click "Create Account" button, fill out the form, and submit if you haven't created an account yet.
Enter your email and password and submit if you already have an account.
Service mocks will automatically create a "hello-world" service for you when you create an account.
Click on "hello-world" in the left nav.
Click on the "Mock" tab
Expand the "default" environment
Service Mocks will automatically add "GET /hello-world" resource for you when you create a new service.
Expand the resource labeled "GET /hello-world"
Click the "Add Response" button, enter a "Name" of "Success"
Click on the "Return" tab, then the "Status/Headers" menu item and select "200".
Click on the "Body" menu item, and fill set it to {"hello": "world"}
and click the "Add" button.
Add another response using steps 11-14 again, but name it "Bad Request", select "400" for the "Status" and set the "Body" to {"bad": "request"}
Open Postman or cURL, paste this URL, concatenate "/hello-world" to it.
Send a request. You should see a "Status" of "200" and a body of{"hello": "world"}
Open the console again and toggle "Bad Request" as the active response.
Repeat step 17 but this time you should see a "Status" of "400" a body of {"bad": "request"}
Visit
Scroll to the top of your open "default" environment pane and copy the mock URL which should look like: where the <account-name> is matches what you used in your account creation step.