Hi everybody!
I have a simple question. I am trying to start some test REST calls with our new Content Server
Calling the Directory service results in a success GET : http://server.name.com:8080/otdsws/api/index.html?rest
Also a Test Call is working GET http://server.name.com:8080/otdsws/rest/accessroles
But calling the REST API for the Content Server is a challenge and give me an authentification error. GET http://server.name.com:8080/OTCS/cs.exe/api/index.html?rest or GET https://server.name.com/OTCS/cs.exe/api/v1/index.html?rest or GET https://server.name.com/OTCS/cs.exe/api/v1/apiinfo
Is it neccesarry for the CS Admin to enable the RESt API? Or does my user needs a special permission right ? Ideas are welcome :-)
Cheers Christian****
Hi Christian,
As the error states, you need an authentication token to be passed in with each REST API call.
This can be retrieved using api/v1/auth and providing your username and password in the body's form-data.
The resulting token is then provided in subsequent requests in a header called otcsticket.
Take a look at the following area on MySupport for more information:
https://knowledge.opentext.com/knowledge/llisapi.dll?func=ll&objId=67789539&objAction=browse&viewType=1
Thanks, Phil.
Dear Phil!
Thanks for the hint. I was successfully to get the token , and testing teh API For all the others i can recommand Postman , i was using a different Rest client and this was my mistake
As Phil explained: Add the received token ub the header section key: otcsticket value: your token without ""
All the best and have a wonderful time cheers ch