Testing a REST Message
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
‎10-09-2017 09:38 AM
Hello all,
I'm creating a rest message to POST to a third party whether a request was approved or rejected. Its a pretty simple message and when I test it from the related links, all looks good. However, I was just wondering, is there a way to truly test it without involving the third party? I'd like to work through the request and reject it, and somehow see what the POST message is sending. Can this be done all in my system somehow? Thanks in advance.
- Labels:
-
Integrations
-
Scripting and Coding
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
‎10-09-2017 09:44 AM
Hi Jake,
This cannot be tested on your own. If you are consuming third party api then you can only test it by sending the request and get the response.
Mark Correct if this solves your issue and also hit Like and Helpful if you find my response worthy based on the impact.
Thanks
Ankur
Ankur
✨ Certified Technical Architect || ✨ 9x ServiceNow MVP || ✨ ServiceNow Community Leader

- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
‎10-09-2017 09:47 AM
Hi Jake, If you are exposing a REST API that you want to test, you can use POSTMAN which is a Chrome extension or SOAP UI.
If it is a REST API exposed by 3rd party, you can't test it without their involvement. Because you have to send REST request to them.
Please mark this response as correct or helpful if it assisted you with your question.
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
‎10-10-2017 05:54 AM
Hi Sanjiv,
We are exposing the REST API in order for them to create a REQ/RITM and we can test that ourselves. However, they are giving us an endpoint in order to POST this message to them whether or not the request was approved or rejected. I guess I'm out of luck. Thanks for the reply.

- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
‎10-09-2017 10:26 AM
You can simulate your headers, querystring, and body in GETs and POSTs and send them here: https://httpbin.org/