2022-05-11 22:47:31 +00:00
|
|
|
{
|
|
|
|
"operationId": "requestToken",
|
|
|
|
"summary": "Request a new access token from credentials",
|
2023-03-07 06:42:26 +00:00
|
|
|
"tags": ["Tokens"],
|
2022-05-11 22:47:31 +00:00
|
|
|
"requestBody": {
|
|
|
|
"description": "Credentials Payload",
|
|
|
|
"required": true,
|
|
|
|
"content": {
|
|
|
|
"application/json": {
|
|
|
|
"schema": "{{schema.GetToken}}"
|
|
|
|
}
|
|
|
|
}
|
|
|
|
},
|
|
|
|
"responses": {
|
|
|
|
"200": {
|
|
|
|
"description": "200 response",
|
|
|
|
"content": {
|
|
|
|
"application/json": {
|
|
|
|
"schema": {
|
2023-05-31 06:34:20 +00:00
|
|
|
"type": "object",
|
2023-03-07 06:42:26 +00:00
|
|
|
"required": ["result"],
|
2022-05-11 22:47:31 +00:00
|
|
|
"properties": {
|
|
|
|
"result": {
|
2023-03-07 06:42:26 +00:00
|
|
|
"$ref": "#/components/schemas/TokenObject"
|
2022-05-11 22:47:31 +00:00
|
|
|
}
|
|
|
|
}
|
|
|
|
},
|
|
|
|
"examples": {
|
|
|
|
"default": {
|
|
|
|
"value": {
|
|
|
|
"result": {
|
|
|
|
"expires": 1566540510,
|
|
|
|
"token": "eyJhbGciOiJSUzUxMiIsInR5cCI6IkpXVCJ9.ey...xaHKYr3Kk6MvkUjcC4",
|
|
|
|
"scope": "user"
|
|
|
|
}
|
|
|
|
}
|
|
|
|
}
|
|
|
|
}
|
|
|
|
}
|
|
|
|
}
|
|
|
|
},
|
|
|
|
"403": {
|
|
|
|
"description": "403 response",
|
|
|
|
"content": {
|
|
|
|
"application/json": {
|
|
|
|
"schema": {
|
|
|
|
"type": "object",
|
|
|
|
"additionalProperties": false,
|
2023-03-07 06:42:26 +00:00
|
|
|
"required": ["error"],
|
2022-05-11 22:47:31 +00:00
|
|
|
"properties": {
|
|
|
|
"result": {
|
2023-05-31 01:35:09 +00:00
|
|
|
"type": "object",
|
2022-05-11 22:47:31 +00:00
|
|
|
"nullable": true
|
|
|
|
},
|
|
|
|
"error": {
|
|
|
|
"$ref": "#/components/schemas/ErrorObject"
|
|
|
|
}
|
|
|
|
}
|
|
|
|
},
|
|
|
|
"examples": {
|
|
|
|
"default": {
|
|
|
|
"value": {
|
|
|
|
"result": null,
|
|
|
|
"error": {
|
|
|
|
"code": 403,
|
|
|
|
"message": "Not available during setup phase"
|
|
|
|
}
|
|
|
|
}
|
|
|
|
}
|
|
|
|
}
|
|
|
|
}
|
|
|
|
}
|
|
|
|
}
|
|
|
|
}
|
2023-03-07 06:42:26 +00:00
|
|
|
}
|