2016-03-24 09:26:27 UTC
Looking for a working example of how to use the ISIM REST API from within TDI 7.1.1.
I know how to use the TDI and I can use the REST API from a normal browser. We have a lot of TDI assembly lines which is using the older WS API. We would like to move away from the WS API and start using the REST instead.
My lack of knowledge regarding the HTTP connector and the REST API give me the following problems:
- The HTTP connector does not seem to understand a "redirect" nor handle "sessions" like a normal web browser do and I do understand the HTTP connector is not a "web browser". When trying to retrieve data through a HTTP GET http://<host>:<port>/itim/rest/people?uid=xxx as an "unauthenticated" request i get redirected to the logon URL and then I get stuck because i don't succeed in using the session data in another connector actually doing the data retrieval as authenticated.
Question - How do I solve the redirect and authentication required by the ISIM REST API from within the TDI?
- Can I solve this with one HTTP connector or do I need to use two? One for the auth and one for the data retrieval.
- I guess I can solve this by using a custom java class implementing the auth and session handling from within TDI but I would like to avoid building such "extension" if possible. There must be some TDI HTTP connector based solution on this?
Thanks in advance