Important Update: Archer Community Scheduled Maintenance on November 23–24 - New Community Launching Soon! Learn More..
2018-09-06 06:02 PM
Working with Content API and it's unclear the URL to pull back all records OR even the default count of records from an application.
*I thought I saw something that said it's 1000. So, anything beyond that would be multiple calls.
Additionally, it's unclear if possible to specify the fields desired.
I can do something like this and get a specific record
/contentapi/Applications(12345)
However, this gives a 500 error
/contentapi/Applications
This gives endpoint data (not what I want):
/contentapi/Applications/
2020-05-18 01:36 PM
There it is the headers :
And the Auth:
2020-05-18 01:55 PM
The problem is in the header. It should not be base64 encoded. It must be sent as plain text.
Authorization: Archer session-id=439C730FF83F68EFDC017ED705D9908E
2020-05-18 04:09 PM
Is it what you meant ? Parsing in a header
2020-05-18 04:20 PM
I've tried in many ways
2020-05-18 04:28 PM
The "import" lines make me think you might be writing in Java? I don't know the correct way to set the request headers in Java, but I can tell you that an HTTP 500 is an unhandled .NET exception coming from the API. You should be able to find a corresponding stack trace in your system event log that might help you determine why the API is not responding as expected to your request.
2020-05-18 09:20 PM
The head should like this and go to the Key section type in "Authorization' and under Value section add "Archer Session-ID=Your session Token"
2020-05-19 07:53 AM
Hi Sarhang, thanks for the reply.
here is the response I've got :
2020-05-19 08:22 AM
2020-05-20 08:56 AM
Hi Sarhang, thank you for the reply!
2020-05-20 09:15 AM
You have not answered my question, how many web server do you have?
Install the Postman on the Web Server and when you make the API GET call for the url use https://localhost/RSAarcher/contentapi/ or try this http://localhost/RSAarcher/contentapi/
One more thing, as Bodie mentioned the HTTP 500 error is usually the result of an unhandled .NET exception.
Have you checked the Archer logs and Windows system event log?
Can you please post the Web Config file?