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

  1. 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.
  2. In the Header, set the Content-Type to application/x-www-form-urlencoded
  3. 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

Note

If you do not log out, the user token expires after the period of inactivity that the timeout value defines.  The default timeout value is 15 minutes. For more information, see Managing Common REST API session tokens and user tokens.

Was this page helpful? Yes No Submitting... Thank you

Comments