Skip to content

Latest commit

 

History

History
159 lines (116 loc) · 3.87 KB

ApiKeysApi.md

File metadata and controls

159 lines (116 loc) · 3.87 KB

ApiKeysApi

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

apiKeysCreateApiKey

ApiKeyVM apiKeysCreateApiKey(createApiKeyVM)

Create a new apikey, 5 apikeys for user. Hardcoded for ddos.

Example

// 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()
}

Parameters

Name Type Description Notes
createApiKeyVM CreateApiKeyVM

Return type

ApiKeyVM

Authorization

Configure ApiKey: ApiClient.username = "" ApiClient.password = "" Configure JWT: ApiClient.accessToken = ""

HTTP request headers

  • Content-Type: application/json
  • Accept: application/json

apiKeysDeleteApiKey

ApiKeyVM apiKeysDeleteApiKey(deleteApiKeyVM)

Delete an apikey

Example

// 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()
}

Parameters

Name Type Description Notes
deleteApiKeyVM DeleteApiKeyVM

Return type

ApiKeyVM

Authorization

Configure ApiKey: ApiClient.username = "" ApiClient.password = "" Configure JWT: ApiClient.accessToken = ""

HTTP request headers

  • Content-Type: application/json
  • Accept: application/json

apiKeysGetApiKeys

ApiKeysVM apiKeysGetApiKeys()

Returns list with all apikeys of current user

Always work, it should make only 200 response (except if user is not authorized).

Example

// 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()
}

Parameters

This endpoint does not need any parameter.

Return type

ApiKeysVM

Authorization

Configure ApiKey: ApiClient.username = "" ApiClient.password = "" Configure JWT: ApiClient.accessToken = ""

HTTP request headers

  • Content-Type: Not defined
  • Accept: application/json