-
Notifications
You must be signed in to change notification settings - Fork 9
Create REST service
Pradeep Singh edited this page Mar 8, 2020
·
7 revisions
Create a REST service using a request/response pair
- Using Firefox or Chrome browser navigate to mockiato URL.
- Ente credentials to log in to the application.
- Click on Req/Res Pair button on the home page.
- Select the radio button for ‘REST’ Service Type and select the group you just created from the Group dropdown box.
- Enter valid Service name(eg. Mockiato/rest/service/read),Base Path(eg. /Testing/Mockiato/rest/service/read), and Response Delay(Optional).
- In the Request/Response Pair panel you can add a label for your pair (Optional).
- Select your HTTP Method. a. Add a relative path if needed. b. Add query key-value pairs if needed.
- Select Payload Type from the dropdown.
- Add request headers (eg. Content-Type application/json).
- Enter your request in the Request Payload field.
- Enter your response Status (eg. 200 OK).
- Add response headers (eg. Content-Type application/xml).
- Enter your response in the Response Payload field.
- Click on 'Publish' button.
- A pop up should appear showing your virtual service URL.
Mockiato ☕
Mockiato ☕
Quick Start Guide