All URIs are relative to http://localhost
Method | HTTP request | Description |
---|---|---|
apiKeysCreateApiKey | POST /api/manage/v1/ApiKeys | Create a new apikey, 5 apikeys for user. Hardcoded for ddos. |
apiKeysDeleteApiKey | DELETE /api/manage/v1/ApiKeys | Delete an apikey |
apiKeysGetApiKeys | GET /api/manage/v1/ApiKeys | Returns list with all apikeys of current user |
ApiKeyVM apiKeysCreateApiKey(createApiKeyVM)
Create a new apikey, 5 apikeys for user. Hardcoded for ddos.
// Import classes:
//import org.openapitools.client.infrastructure.*
//import cloud.fastreport.model.*
val apiInstance = ApiKeysApi()
val createApiKeyVM : CreateApiKeyVM = // CreateApiKeyVM |
try {
val result : ApiKeyVM = apiInstance.apiKeysCreateApiKey(createApiKeyVM)
println(result)
} catch (e: ClientException) {
println("4xx response calling ApiKeysApi#apiKeysCreateApiKey")
e.printStackTrace()
} catch (e: ServerException) {
println("5xx response calling ApiKeysApi#apiKeysCreateApiKey")
e.printStackTrace()
}
Name | Type | Description | Notes |
---|---|---|---|
createApiKeyVM | CreateApiKeyVM |
Configure ApiKey: ApiClient.username = "" ApiClient.password = "" Configure JWT: ApiClient.accessToken = ""
- Content-Type: application/json
- Accept: application/json
ApiKeyVM apiKeysDeleteApiKey(deleteApiKeyVM)
Delete an apikey
// Import classes:
//import org.openapitools.client.infrastructure.*
//import cloud.fastreport.model.*
val apiInstance = ApiKeysApi()
val deleteApiKeyVM : DeleteApiKeyVM = // DeleteApiKeyVM |
try {
val result : ApiKeyVM = apiInstance.apiKeysDeleteApiKey(deleteApiKeyVM)
println(result)
} catch (e: ClientException) {
println("4xx response calling ApiKeysApi#apiKeysDeleteApiKey")
e.printStackTrace()
} catch (e: ServerException) {
println("5xx response calling ApiKeysApi#apiKeysDeleteApiKey")
e.printStackTrace()
}
Name | Type | Description | Notes |
---|---|---|---|
deleteApiKeyVM | DeleteApiKeyVM |
Configure ApiKey: ApiClient.username = "" ApiClient.password = "" Configure JWT: ApiClient.accessToken = ""
- Content-Type: application/json
- Accept: application/json
ApiKeysVM apiKeysGetApiKeys()
Returns list with all apikeys of current user
Always work, it should make only 200 response (except if user is not authorized).
// Import classes:
//import org.openapitools.client.infrastructure.*
//import cloud.fastreport.model.*
val apiInstance = ApiKeysApi()
try {
val result : ApiKeysVM = apiInstance.apiKeysGetApiKeys()
println(result)
} catch (e: ClientException) {
println("4xx response calling ApiKeysApi#apiKeysGetApiKeys")
e.printStackTrace()
} catch (e: ServerException) {
println("5xx response calling ApiKeysApi#apiKeysGetApiKeys")
e.printStackTrace()
}
This endpoint does not need any parameter.
Configure ApiKey: ApiClient.username = "" ApiClient.password = "" Configure JWT: ApiClient.accessToken = ""
- Content-Type: Not defined
- Accept: application/json