How to debug scripted rest API

Raju19
Giga Contributor

Hi Experts ,

I have one scripted rest api with post call . its not working as expected . could you please guide me with way to debug it?

Any pointers will be helpfull.

 

Regards,

Raju

1 ACCEPTED SOLUTION

Amit Gujarathi
Giga Sage

Hi Raju,

ITs quite simple.

Errors or unexpected results are often the result of small discrepancies in the HTTP call you’re making. Maybe there’s a bad query parameter or broken path in the URL. You can look for these sorts of issues by enabling REST Debugging and examining the node log.

  1. Create a new true/false system property named glide.rest.debug with value true.
  2. Initiate a test API call from a testing tool such as REST API Explorer, Postman, etc.
  3. Examine the node log file.

 

Regards,

Amit Gujarathi

View solution in original post

1 REPLY 1

Amit Gujarathi
Giga Sage

Hi Raju,

ITs quite simple.

Errors or unexpected results are often the result of small discrepancies in the HTTP call you’re making. Maybe there’s a bad query parameter or broken path in the URL. You can look for these sorts of issues by enabling REST Debugging and examining the node log.

  1. Create a new true/false system property named glide.rest.debug with value true.
  2. Initiate a test API call from a testing tool such as REST API Explorer, Postman, etc.
  3. Examine the node log file.

 

Regards,

Amit Gujarathi