Page 1 of 1

Updated API response header's index case.

Posted: Thu Dec 29, 2022 4:30 am
by demo
Hello Simpro,
I am using API for getting the data of All Jobs. For all jobs, first I get jobs headers, I am getting 'Result-Pages', 'Result-Total', and 'Result-Count' then we execute it according to the 'Result-Pages' and I was getting all jobs according to the page and pageSize. But now I am getting 'result-pages', 'result-total', and 'result-count'. So what's the specific reason for changing the case of the index? If there is any particular reason for the change so please let me know about it. So I also changed it where I am using it.

I was using the index's name according to this doc:
https://developer.simprogroup.com/apido ... Pagination

And now I am getting this index's name, I have attached a screenshot of the postman.

Thank You

Re: Updated API response header's index case.

Posted: Mon Jan 02, 2023 10:47 pm
by robbertcha
Hi,

Thanks for your information, I will go and check the case sensitive for the response header parameters as we didn't update this part for long time, so please use 'result-pages', 'result-total', and 'result-count' first, thank you.

Re: Updated API response header's index case.

Posted: Fri Jan 06, 2023 1:45 am
by robbertcha
Hi,

The parameters on the header response are always converted by our API framework into lowercase due to consistency and ease of use, we will update this on the API documentation and so sorry to confuse you.

Re: Updated API response header's index case.

Posted: Wed Jun 21, 2023 11:34 pm
by giggida
It appears something has changed almost two weeks ago that broke our API. The headers are now in upper and lower case, yet in this post it clearly states API framework is always in lowercase for consistency.

User DEMO herein did all the API work for us and now claims this is the reason it no longer works.

We need this addressed immediately as none of our customers are receiving their communications.

Please advise ASAP. Thanks!

Re: Updated API response header's index case.

Posted: Thu Jun 22, 2023 12:52 am
by Sindre
Hi Giggida,
I haven't seen any changes in this and when testing my Postman get the response headers in lower case as expected.

I'm unfamiliar with the endpoint you are posting to. Can you try to GET or POST data to one of our regular endpoints such as

Code: Select all

/api/v1.0/companies/{companyID}/jobs/
and see what headers you get in return.

Also check the return header tab in your attached image.

Regard
Sindre