2016-10-22 16:44:14 -05:00
|
|
|
{
|
|
|
|
"post": {
|
2018-09-20 14:15:17 -05:00
|
|
|
"deprecated": true,
|
2018-09-20 13:52:27 -05:00
|
|
|
"operationId": "authenticate",
|
2016-10-22 17:07:31 -05:00
|
|
|
"tags": [
|
|
|
|
"Authentication"
|
|
|
|
],
|
2018-09-20 14:15:17 -05:00
|
|
|
"summary": "[Deprecated] Perform authentication",
|
|
|
|
"description": "**This endpoint is deprecated, since the authentication can be performed via API key now**. Performs an authentication.",
|
2018-02-03 02:53:40 -06:00
|
|
|
"requestBody": {
|
|
|
|
"description": "Request body.",
|
|
|
|
"required": true,
|
|
|
|
"content": {
|
|
|
|
"application/json": {
|
|
|
|
"schema": {
|
|
|
|
"type": "object",
|
|
|
|
"required": [
|
|
|
|
"apiKey"
|
|
|
|
],
|
|
|
|
"properties": {
|
|
|
|
"apiKey": {
|
|
|
|
"description": "The API key to authenticate with",
|
|
|
|
"type": "string"
|
|
|
|
}
|
|
|
|
}
|
|
|
|
}
|
|
|
|
}
|
2016-10-22 16:44:14 -05:00
|
|
|
}
|
2018-02-03 02:53:40 -06:00
|
|
|
},
|
2016-10-22 16:44:14 -05:00
|
|
|
"responses": {
|
|
|
|
"200": {
|
|
|
|
"description": "The authentication worked.",
|
2018-02-03 02:53:40 -06:00
|
|
|
"content": {
|
|
|
|
"application/json": {
|
|
|
|
"schema": {
|
|
|
|
"type": "object",
|
|
|
|
"properties": {
|
|
|
|
"token": {
|
|
|
|
"type": "string",
|
|
|
|
"description": "The authentication token that needs to be sent in the Authorization header"
|
|
|
|
}
|
|
|
|
}
|
2016-10-22 16:44:14 -05:00
|
|
|
}
|
|
|
|
}
|
2017-04-16 03:27:27 -05:00
|
|
|
},
|
|
|
|
"examples": {
|
|
|
|
"application/json": {
|
|
|
|
"token": "eyJhbGciOiJIUzI1NiIsInR5cCI6IkpXVCJ9.eyJzdWIiOiIxMjM0NTY3ODkwIiwibmFtZSI6IkpvaG4gRG9lIiwiYWRtaW4iOnRydWV9.TJVA95OrM7E2cBab30RMHrHDcEfxjoYZgeFONFh7HgQ"
|
|
|
|
}
|
2016-10-22 16:44:14 -05:00
|
|
|
}
|
|
|
|
},
|
|
|
|
"400": {
|
|
|
|
"description": "An API key was not provided.",
|
2018-02-03 02:53:40 -06:00
|
|
|
"content": {
|
|
|
|
"application/json": {
|
|
|
|
"schema": {
|
|
|
|
"$ref": "../definitions/Error.json"
|
|
|
|
}
|
|
|
|
}
|
2016-10-22 16:44:14 -05:00
|
|
|
}
|
|
|
|
},
|
|
|
|
"401": {
|
|
|
|
"description": "The API key is incorrect, is disabled or has expired.",
|
2018-02-03 02:53:40 -06:00
|
|
|
"content": {
|
|
|
|
"application/json": {
|
|
|
|
"schema": {
|
|
|
|
"$ref": "../definitions/Error.json"
|
|
|
|
}
|
|
|
|
}
|
2016-10-22 16:44:14 -05:00
|
|
|
}
|
|
|
|
},
|
|
|
|
"500": {
|
|
|
|
"description": "Unexpected error.",
|
2018-02-03 02:53:40 -06:00
|
|
|
"content": {
|
|
|
|
"application/json": {
|
|
|
|
"schema": {
|
|
|
|
"$ref": "../definitions/Error.json"
|
|
|
|
}
|
|
|
|
}
|
2016-10-22 16:44:14 -05:00
|
|
|
}
|
|
|
|
}
|
|
|
|
}
|
|
|
|
}
|
|
|
|
}
|