Skip to content

Latest commit

 

History

History
98 lines (70 loc) · 2.03 KB

File metadata and controls

98 lines (70 loc) · 2.03 KB

PasswordApi

All URIs are relative to https://localhost

Method HTTP request Description
recover POST /password/recover Recover password
reset POST /password/reset Reset Password

recover

recover(body)

Recover password

Example

// Import classes:
//import io.swagger.client.infrastructure.*
//import io.github.cactacea.backend.*

val apiInstance = PasswordApi()
val body : PostRecoverBody =  // PostRecoverBody | 
try {
    apiInstance.recover(body)
} catch (e: ClientException) {
    println("4xx response calling PasswordApi#recover")
    e.printStackTrace()
} catch (e: ServerException) {
    println("5xx response calling PasswordApi#recover")
    e.printStackTrace()
}

Parameters

Name Type Description Notes
body PostRecoverBody

Return type

null (empty response body)

Authorization

No authorization required

HTTP request headers

  • Content-Type: Not defined
  • Accept: Not defined

reset

reset(body)

Reset Password

Example

// Import classes:
//import io.swagger.client.infrastructure.*
//import io.github.cactacea.backend.*

val apiInstance = PasswordApi()
val body : PostResetBody =  // PostResetBody | 
try {
    apiInstance.reset(body)
} catch (e: ClientException) {
    println("4xx response calling PasswordApi#reset")
    e.printStackTrace()
} catch (e: ServerException) {
    println("5xx response calling PasswordApi#reset")
    e.printStackTrace()
}

Parameters

Name Type Description Notes
body PostResetBody

Return type

null (empty response body)

Authorization

No authorization required

HTTP request headers

  • Content-Type: Not defined
  • Accept: Not defined