Testing a REST Message

jakeelliot
Kilo Contributor

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.

5 REPLIES 5

Ankur Bawiskar
Tera Patron
Tera Patron

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


Regards,
Ankur
✨ Certified Technical Architect  ||  ✨ 9x ServiceNow MVP  ||  ✨ ServiceNow Community Leader

SanjivMeher
Kilo Patron
Kilo Patron

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.

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.


jarodm
Mega Guru

You can simulate your headers, querystring, and body in GETs and POSTs and send them here: https://httpbin.org/