All URIs are relative to https://api.authlete.com
Method | HTTP request | Description |
---|---|---|
FederationConfigurationApi | Post /api/federation/configuration | /api/federation/configuration API |
FederationRegistrationApi | Post /api/federation/registration | /api/federation/registration API |
FederationConfigurationResponse FederationConfigurationApi(ctx).Body(body).Execute()
/api/federation/configuration API
package main
import (
"context"
"fmt"
"os"
openapiclient "./openapi"
)
func main() {
body := map[string]interface{}{ ... } // map[string]interface{} | (optional)
configuration := openapiclient.NewConfiguration()
apiClient := openapiclient.NewAPIClient(configuration)
resp, r, err := apiClient.FederationEndpointApi.FederationConfigurationApi(context.Background()).Body(body).Execute()
if err != nil {
fmt.Fprintf(os.Stderr, "Error when calling `FederationEndpointApi.FederationConfigurationApi``: %v\n", err)
fmt.Fprintf(os.Stderr, "Full HTTP response: %v\n", r)
}
// response from `FederationConfigurationApi`: FederationConfigurationResponse
fmt.Fprintf(os.Stdout, "Response from `FederationEndpointApi.FederationConfigurationApi`: %v\n", resp)
}
Other parameters are passed through a pointer to a apiFederationConfigurationApiRequest struct via the builder pattern
Name | Type | Description | Notes |
---|---|---|---|
body | map[string]interface{} |
FederationConfigurationResponse
- Content-Type: application/json
- Accept: application/json
[Back to top] [Back to API list] [Back to Model list] [Back to README]
FederationRegistrationResponse FederationRegistrationApi(ctx).FederationRegistrationRequest(federationRegistrationRequest).Execute()
/api/federation/registration API
package main
import (
"context"
"fmt"
"os"
openapiclient "./openapi"
)
func main() {
federationRegistrationRequest := *openapiclient.NewFederationRegistrationRequest() // FederationRegistrationRequest |
configuration := openapiclient.NewConfiguration()
apiClient := openapiclient.NewAPIClient(configuration)
resp, r, err := apiClient.FederationEndpointApi.FederationRegistrationApi(context.Background()).FederationRegistrationRequest(federationRegistrationRequest).Execute()
if err != nil {
fmt.Fprintf(os.Stderr, "Error when calling `FederationEndpointApi.FederationRegistrationApi``: %v\n", err)
fmt.Fprintf(os.Stderr, "Full HTTP response: %v\n", r)
}
// response from `FederationRegistrationApi`: FederationRegistrationResponse
fmt.Fprintf(os.Stdout, "Response from `FederationEndpointApi.FederationRegistrationApi`: %v\n", resp)
}
Other parameters are passed through a pointer to a apiFederationRegistrationApiRequest struct via the builder pattern
Name | Type | Description | Notes |
---|---|---|---|
federationRegistrationRequest | FederationRegistrationRequest |
FederationRegistrationResponse
- 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]