Logout user

get

/oiri/api/v1/logout

api logs out user by invalidating the `JSESSIONID` cookie.

Request

There are no request parameters for this operation.

There's no request body for this operation.

Security
Back to Top

Response

Supported Media Types

200 Response

OK. If response is OK, HTTP status code 200 is returned. Logout operation ends users session.
Headers
Body ()
Root Schema : schema
Type: object
Show Source

401 Response

Unauthorized
Body ()
Root Schema : Error
Type: object
Show Source
Back to Top

Examples

The following example shows how to log out a user.

curl -X GET\
-H "Accept: application/json"\
"http://localhost:port/oiri/api/v1/logout"

Example of the Response Body

The following is an example of the response body in JSON format.

{message: "User logged out"}
Back to Top