2016-10-23 00:44:14 +03:00
|
|
|
{
|
|
|
|
"post": {
|
2016-10-23 01:07:31 +03:00
|
|
|
"tags": [
|
|
|
|
"Authentication"
|
|
|
|
],
|
|
|
|
"summary": "Perform authentication",
|
2016-10-23 00:44:14 +03:00
|
|
|
"description": "Performs an authentication",
|
|
|
|
"parameters": [
|
|
|
|
{
|
|
|
|
"name": "apiKey",
|
|
|
|
"in": "formData",
|
|
|
|
"description": "The API key to authenticate with",
|
|
|
|
"required": true,
|
|
|
|
"type": "string"
|
|
|
|
}
|
|
|
|
],
|
|
|
|
"responses": {
|
|
|
|
"200": {
|
|
|
|
"description": "The authentication worked.",
|
|
|
|
"schema": {
|
|
|
|
"type": "object",
|
|
|
|
"properties": {
|
|
|
|
"token": {
|
|
|
|
"type": "string",
|
|
|
|
"description": "The authentication token that needs to be sent in the Authorization header"
|
|
|
|
}
|
|
|
|
}
|
|
|
|
}
|
|
|
|
},
|
|
|
|
"400": {
|
|
|
|
"description": "An API key was not provided.",
|
|
|
|
"schema": {
|
|
|
|
"$ref": "../definitions/Error.json"
|
|
|
|
}
|
|
|
|
},
|
|
|
|
"401": {
|
|
|
|
"description": "The API key is incorrect, is disabled or has expired.",
|
|
|
|
"schema": {
|
|
|
|
"$ref": "../definitions/Error.json"
|
|
|
|
}
|
|
|
|
},
|
|
|
|
"500": {
|
|
|
|
"description": "Unexpected error.",
|
|
|
|
"schema": {
|
|
|
|
"$ref": "../definitions/Error.json"
|
|
|
|
}
|
|
|
|
}
|
|
|
|
}
|
|
|
|
}
|
|
|
|
}
|