[{"label":"Latest (2.0.0)","version":"latest"},{"version":"1.0.0"}]
srm-rest-api
Get Current Session
DescriptionReturns information about the current session, if any.
Request
Operation doesn't accept any path, query or header parameters.
URL
https://{api_host}//session
Authentication
This operation uses the following authentication methods.
Response
Response
Response BodyResponse Body
200 OK
Returns
SessionInfo
of type application/json
Returns information about the currently authenticated session.
{
"username": "string"
}
string
username
Optional
Errors
ResponseError
400
Bad request - the server could not understand the request due to invalid syntax or invalid request body content
ResponseError
500
Internal server error - unexpected condition prevents fulfilling the request
Code Samples
cURL Command
curl https://{api_host}/session
[{"label":"Latest (2.0.0)","version":"latest"},{"version":"1.0.0"}]
srm-rest-api