Inbound REST call logging

Sebastiaan de V
Kilo Guru

For an integration with a third party system, we are building a REST integration using import sets with the Import API. We would like to track all REST communication (incoming and outgoing). 

Is it possible in the REST Import API to see and log (e.g. in a table) the incoming REST message, either the actual complete REST request or only the body (JSON). I couldn't find the question on the community. You can see the REST message if you enable REST debugging (glide.rest.debug=true), but I don't think you can access that in a script.

Anyone found a solution for this without resorting to a Scripted REST API?

 

10 REPLIES 10

Sebastiaan,

Can you explain why the "glide.rest.debug" sys property is not a good solution?

Sebastiaan de V
Kilo Guru

There are a number of reasons the "glide.rest.debug" does not meet the requirements:

  • Needs to keep working on the live interface in production, enabling REST debug in production is not best practice
  • Together with the actual request (body) we want to keep additional information, like interface system, relation to the import row and/or record, reprocess message, etc.
  • We want to be able to easily see all the interface interactions for a certain ticket/record. To use the REST debug log, you need to know the exact timing and it's difficult to go back a larger number of days (let's say 60).

 

I'm afraid that would be a scripted WS then.
But that scripted WS could be a wrapper for the Import REST API.

Hello Sebastiaan,

Have you figured out a solution for this question ? I am looking for an exact solution at the moment.

 

Thanks,

Hari

Hi Hari,

I looked into it, but it doesn't seem possible. As stated by other people in this thread, the only option is to use a Scripted REST API, then you have full control over the object.

The glide.rest.debug property gives information if you are actually debugging, but it does not provide the possibility to store the results in a table if you want to use it for reporting, auditing or functional and technical support on a production interface.

If anyone found a solution or if this comes available in a new release it would be great!

Regards,

Sebastiaan