Skip to content

Latest commit

 

History

History
142 lines (88 loc) · 4.24 KB

IntrospectionEndpointApi.md

File metadata and controls

142 lines (88 loc) · 4.24 KB

\IntrospectionEndpointApi

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

Method HTTP request Description
AuthIntrospectionApi Post /api/auth/introspection /api/auth/introspection API
AuthIntrospectionStandardApi Post /api/auth/introspection/standard /api/auth/introspection/standard API

AuthIntrospectionApi

IntrospectionResponse AuthIntrospectionApi(ctx).IntrospectionRequest(introspectionRequest).Execute()

/api/auth/introspection API

Example

package main

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

func main() {
    introspectionRequest := *openapiclient.NewIntrospectionRequest("Token_example") // IntrospectionRequest | 

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

Path Parameters

Other Parameters

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

Name Type Description Notes
introspectionRequest IntrospectionRequest

Return type

IntrospectionResponse

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]

AuthIntrospectionStandardApi

StandardIntrospectionResponse AuthIntrospectionStandardApi(ctx).StandardIntrospectionRequest(standardIntrospectionRequest).Execute()

/api/auth/introspection/standard API

Example

package main

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

func main() {
    standardIntrospectionRequest := *openapiclient.NewStandardIntrospectionRequest("Parameters_example") // StandardIntrospectionRequest | 

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

Path Parameters

Other Parameters

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

Name Type Description Notes
standardIntrospectionRequest StandardIntrospectionRequest

Return type

StandardIntrospectionResponse

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]