ApiKeys
ApiKeys
GetApiKeys
Returns list with all api keys of current user
Always work, it should make only 200 response (except if user is not authorized).
Request
GET /api/manage/v1/ApiKeys
Responses
Status Code | Description | Samples |
---|---|---|
200 | Succesfully retured |
|
401 | User is not authorized |
|
500 | Exception somehow thrown (barely possible) |
CreateApiKey
Create a new apikey, 5 apikeys for user. Hardcoded for ddos.
Request
POST /api/manage/v1/ApiKeys
Parameters
Name | Type | Value | Notes |
---|---|---|---|
*model |
Responses
Status Code | Description | Samples |
---|---|---|
200 | Succesfully created |
|
400 | wrong model provided or exception thrown (user's attempts to create sixth key for example throwns an exception) |
|
401 | User is not authorized |
DeleteApiKey
Delete an apikey
Request
DELETE /api/manage/v1/ApiKeys
Parameters
Name | Type | Value | Notes |
---|---|---|---|
*model |
Responses
Status Code | Description | Samples |
---|---|---|
204 | Succesfully deleted |
|
400 | The request is wrong |
|
401 | User is not authorized |
|
404 | No such apikey found |
|
500 | exception thrown |