4.7.1.2.2. Logout
Logout can also be performed by either GET or POST request.
- GET request
-
To perform login using GET, construct the URL
{host:port}/app-portal/api/logout
with the session parameter containing the current session ID obtained by callinglogin
.For example:
http://localhost:8080/app-portal/api/logout?session=64f7d59d-2cf5-acfb-f4d3-f55b7882da72
- POST request
-
To perform login using POST, send request to
{host:port}/app-portal/api/logout
URL, passing JSON (Content-Type
header has the valueapplication/json
) or form (Content-Type
header has the valueapplication/x-www-form-urlencoded
) in the request body.Example of the JSON format:
{ "session" : "64f7d59d-2cf5-acfb-f4d3-f55b7882da72" }
Example of the form:
session: 64f7d59d-2cf5-acfb-f4d3-f55b7882da72
The service will return status 200.