Andy Parker
Posts: 0
Joined: Wed Mar 27, 2013 10:21 am

API Express - possible issue with rest Header Parameters passing

I have setup a simple API that takes the data passed in the body of a call to it, and uses a REST service to then store that data.

If I tap "Generate" to generate a service response for the REST call, not all of the Header parameters are transferred to the screen.

The problem header is an object, and an example of the formatt is below:

Name Value

-------- --------

KLmeta-data {"parent_id":"aldhsghlkhgdfdhglhlsdfdf","name":"apiexpress.txt"}

When the "Generate Service Response" screen is shown, the KLmeta-data header's value is only a { instead of the full string, and fails if I run it.
If I correct it and enter the full header again, it runs correctly.

Also, the API returns an error when I try to run it, despite this working when I correct the header value, could this error be a bug ?

I have even tried to add a key with the information in, and the same happens, please see screenshots below Image

Serhii Kulibaba
Posts: 150
Joined: Tue Aug 27, 2013 1:47 pm

API Express - possible issue with rest Header Parameters passing

Hello Andy,

Could you show us how exactly did you define the parameter "KEYS"? Please send us screen shots of this implementation so we can better understand what is happening.

It seems an issue with quotation marks. Please check does it work with a single mark instead of double?

Andy Parker
Posts: 0
Joined: Wed Mar 27, 2013 10:21 am

API Express - possible issue with rest Header Parameters passing

I've tried it with single quotes, it accepts this but then the service call fails, so something treats them differently to double quotes.

I have tried entering the definition directly as well, same problem.

Below is the key definition:
Image

Andy Parker
Posts: 0
Joined: Wed Mar 27, 2013 10:21 am

API Express - possible issue with rest Header Parameters passing

Any updates with this please?
It's stopping progress with the app.

thanks

Andy

Illya Stepanov
Posts: 0
Joined: Mon Mar 18, 2013 8:48 am

API Express - possible issue with rest Header Parameters passing

Hi Andy, we have forward this issue to our API Express team for review and waiting for the conclusion from them. I'll ping them once again.

Andy Parker
Posts: 0
Joined: Wed Mar 27, 2013 10:21 am

API Express - possible issue with rest Header Parameters passing

Hi Illya,

Do we have an ETA for a fix from the API Express team?
I need to set expectations with a client.

thanks

Andy

Andy Parker
Posts: 0
Joined: Wed Mar 27, 2013 10:21 am

API Express - possible issue with rest Header Parameters passing

Do we have an ETA for a fix from the API Express team?
I need to set expectations with a client.

thanks

Andy

Galyna Abramovych
Site Admin
Posts: 84
Joined: Tue Mar 22, 2016 6:03 pm

API Express - possible issue with rest Header Parameters passing

Hello Andy,

I am glad to be able to inform you that the issue has already been fixed and is now being tested before we could introduce it during our next release.

Andy Parker
Posts: 0
Joined: Wed Mar 27, 2013 10:21 am

API Express - possible issue with rest Header Parameters passing

Many thanks for the update, much appreciated.

Return to “Issues”