ApiKeys
ApiKeys
GetApiKeys
Returns list with all apikeys 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 |
CreateApiKey
Create a new apikey, 5 apikeys for user. Hardcoded for ddos.
Request
POST /api/manage/v1/ApiKeys
Parameters
| Name | Type | Value | Notes |
|---|---|---|---|
| *body |
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 |
|---|---|---|---|
| *body |
Responses
| Status Code | Description | Samples |
|---|---|---|
| 204 | Succesfully deleted |
|
| 400 | The request is wrong |
|
| 401 | User is not authorized |
|
| 404 | No such apikey found |
Definitions
ApiKeysVM
| Name | Type | Notes |
|---|---|---|
| apiKeys |
|
|
| count | integer (int64) | |
| $t | string |
ApiKeyVM
| Name | Type | Notes |
|---|---|---|
| value | string | |
| description | string | |
| expired | string (date-time) | |
| $t | string |
ProblemDetails
| Name | Type | Notes |
|---|---|---|
| type | string | |
| title | string | |
| status | integer (int32) | |
| detail | string | |
| instance | string |
CreateApiKeyVM
| Name | Type | Notes |
|---|---|---|
| description | string | |
| expired | string (date-time) | |
| $t | string |
DeleteApiKeyVM
| Name | Type | Notes |
|---|---|---|
| apiKey | string | |
| $t | string |