All URIs are relative to http://localhost
| Method | HTTP request | Description |
|---|---|---|
| GetUserAuthorizationFor | Get /user/authorization/for | Is the current user authorized for the provided permission |
GetUserAuthorizationFor(ctx).Permission(permission).Execute()
Is the current user authorized for the provided permission
package main
import (
"context"
"fmt"
"os"
openapiclient "./openapi"
)
func main() {
permission := "permission_example" // string |
configuration := openapiclient.NewConfiguration()
apiClient := openapiclient.NewAPIClient(configuration)
resp, r, err := apiClient.UserAuthorizationApi.GetUserAuthorizationFor(context.Background()).Permission(permission).Execute()
if err != nil {
fmt.Fprintf(os.Stderr, "Error when calling `UserAuthorizationApi.GetUserAuthorizationFor``: %v\n", err)
fmt.Fprintf(os.Stderr, "Full HTTP response: %v\n", r)
}
}Other parameters are passed through a pointer to a apiGetUserAuthorizationForRequest struct via the builder pattern
| Name | Type | Description | Notes |
|---|---|---|---|
| permission | string |
(empty response body)
ApiToken, ServiceBearer, ServiceToken
- Content-Type: Not defined
- Accept: application/json
[Back to top] [Back to API list] [Back to Model list] [Back to README]