Skip to main content
Question

I am working on a integration Workbench between 2 softwares using their REST API. One of the REST API request JSON body as arguments to use some GET methods. HTTPCaller seams not to allow to use body with GET. Any idea ? Thank you. Mathieu.


mlupien
Contributor
Forum|alt.badge.img+7
I am working on a integration Workbench between 2 softwares using their REST API. One of the REST API request JSON body as arguments to use some GET methods. HTTPCaller seams not to allow to use body with GET. Any idea ? Thank you. Mathieu.

4 replies

daveatsafe
Safer
Forum|alt.badge.img+19
  • Safer
  • February 4, 2022

Hi @mlupien​,

In the Request section of the HTTPCaller parameters, please click on the triangle beside Query String Parameters to expand the box. You can then add the parameter name and value for the GET request. The value can be set to the JSON you want to submit, or to a feature attribute containing the JSON.


mlupien
Contributor
Forum|alt.badge.img+7
  • Author
  • Contributor
  • February 4, 2022

Thank you @daveatsafe, The API is waiting for a Body into the GET...

I can use the Body into the POST, but not in the GET.

Using the Query String Parameters, what should I use as a parameter name ? I Tried "Body" but it does not work.

 

Thank you again.

 


daveatsafe
Safer
Forum|alt.badge.img+19
  • Safer
  • February 4, 2022
mlupien wrote:

Thank you @daveatsafe, The API is waiting for a Body into the GET...

I can use the Body into the POST, but not in the GET.

Using the Query String Parameters, what should I use as a parameter name ? I Tried "Body" but it does not work.

 

Thank you again.

 

Hi @mlupien​,

I'm not sure - Can you share the location to the API documentation?


mlupien
Contributor
Forum|alt.badge.img+7
  • Author
  • Contributor
  • February 8, 2022
daveatsafe wrote:

Hi @mlupien​,

I'm not sure - Can you share the location to the API documentation?

Hi @daveatsafe​ ,

Thank you for your reply. Unfortunately, the API documentation is pretty poor. I joined it anyways.

By the way, I had found a workaround. Because there is not a lot of data, I didn't use a body in the GET (body is essentially used to filter the returned results). So, with no body in the request, I get all the data records.

I then use FME to filter the results.

So, I am curious if there is a way to use a body into a Get but it is not a big deal now that I had found a solution.

 

Thanks again.

:)


Cookie policy

We use cookies to enhance and personalize your experience. If you accept you agree to our full cookie policy. Learn more about our cookies.

 
Cookie settings