Skip to content

Latest commit

 

History

History
75 lines (46 loc) · 2.01 KB

RevocationEndpointApi.md

File metadata and controls

75 lines (46 loc) · 2.01 KB

\RevocationEndpointApi

All URIs are relative to https://api.authlete.com

Method HTTP request Description
AuthRevocationApi Post /api/auth/revocation /api/auth/revocation API

AuthRevocationApi

RevocationResponse AuthRevocationApi(ctx).RevocationRequest(revocationRequest).Execute()

/api/auth/revocation API

Example

package main

import (
    "context"
    "fmt"
    "os"
    openapiclient "./openapi"
)

func main() {
    revocationRequest := *openapiclient.NewRevocationRequest("Parameters_example") // RevocationRequest | 

    configuration := openapiclient.NewConfiguration()
    apiClient := openapiclient.NewAPIClient(configuration)
    resp, r, err := apiClient.RevocationEndpointApi.AuthRevocationApi(context.Background()).RevocationRequest(revocationRequest).Execute()
    if err != nil {
        fmt.Fprintf(os.Stderr, "Error when calling `RevocationEndpointApi.AuthRevocationApi``: %v\n", err)
        fmt.Fprintf(os.Stderr, "Full HTTP response: %v\n", r)
    }
    // response from `AuthRevocationApi`: RevocationResponse
    fmt.Fprintf(os.Stdout, "Response from `RevocationEndpointApi.AuthRevocationApi`: %v\n", resp)
}

Path Parameters

Other Parameters

Other parameters are passed through a pointer to a apiAuthRevocationApiRequest struct via the builder pattern

Name Type Description Notes
revocationRequest RevocationRequest

Return type

RevocationResponse

Authorization

ServiceCredentials

HTTP request headers

  • Content-Type: application/json, application/x-www-form-urlencoded
  • Accept: application/json

[Back to top] [Back to API list] [Back to Model list] [Back to README]