Logging out of the Common REST API
To log out of a session that is open in the Common REST API, use the following URL:
https://<hostName>:<portNumber>/cra/serviceGateway/services/<serviceName>/Logoff
- Set the variables to the following values:
- <hostName> is the name of the mainframe host where the Apache Tomcat server is running.
- <portNumber> is the port number of the Tomcat server.
- <serviceName> is the name of the service as it appears on the list. To retrieve a list of services, see the Before you begin section in the "Logging in to a service using the Common REST API" topic.
- In the Header, set the Content-Type to application/x-www-form-urlencoded.
- In the Body, set the following key:
userToken=<userToken>
<userToken> is the token issued to you when you logged on. For more information, see Logging-in-to-a-service-using-the-Common-REST-API.
Related topic
Tip: For faster searching, add an asterisk to the end of your partial query. Example: cert*