Create REST service - Optum/mockiato GitHub Wiki

Create a REST service using a request/response pair

  1. Using Firefox or Chrome browser navigate to mockiato URL.
  2. Ente credentials to log in to the application.
  3. Click on Req/Res Pair button on the home page.
  4. Select the radio button for β€˜REST’ Service Type and select the group you just created from the Group dropdown box.
  5. Enter valid Service name(eg. Mockiato/rest/service/read),Base Path(eg. /Testing/Mockiato/rest/service/read), and Response Delay(Optional).
  6. In the Request/Response Pair panel you can add a label for your pair (Optional).
  7. Select your HTTP Method. a. Add a relative path if needed. b. Add query key-value pairs if needed.
  8. Select Payload Type from the dropdown.
  9. Add request headers (eg. Content-Type application/json).
  10. Enter your request in the Request Payload field.
  11. Enter your response Status (eg. 200 OK).
  12. Add response headers (eg. Content-Type application/xml).
  13. Enter your response in the Response Payload field.
  14. Click on 'Publish' button.
  15. A pop up should appear showing your virtual service URL.




Back                                       Next

⚠️ **GitHub.com Fallback** ⚠️