All URIs are relative to http://localhost
Method | HTTP request | Description |
---|---|---|
CreateOrganizationScope | Post /api/organization-scopes | Create an organization scope |
DeleteOrganizationScope | Delete /api/organization-scopes/{id} | Delete organization scope |
GetOrganizationScope | Get /api/organization-scopes/{id} | Get organization scope |
ListOrganizationScopes | Get /api/organization-scopes | Get organization scopes |
UpdateOrganizationScope | Patch /api/organization-scopes/{id} | Update organization scope |
CreateOrganizationScope(ctx).CreateOrganizationScopeRequest(createOrganizationScopeRequest).Execute()
Create an organization scope
package main
import (
"context"
"fmt"
"os"
logto "github.com/mostafa/go-api-client"
)
func main() {
createOrganizationScopeRequest := *logto.NewCreateOrganizationScopeRequest("Name_example") // CreateOrganizationScopeRequest |
configuration := logto.NewConfiguration()
apiClient := logto.NewAPIClient(configuration)
r, err := apiClient.OrganizationScopesAPI.CreateOrganizationScope(context.Background()).CreateOrganizationScopeRequest(createOrganizationScopeRequest).Execute()
if err != nil {
fmt.Fprintf(os.Stderr, "Error when calling `OrganizationScopesAPI.CreateOrganizationScope``: %v\n", err)
fmt.Fprintf(os.Stderr, "Full HTTP response: %v\n", r)
}
}
Other parameters are passed through a pointer to a apiCreateOrganizationScopeRequest struct via the builder pattern
Name | Type | Description | Notes |
---|---|---|---|
createOrganizationScopeRequest | CreateOrganizationScopeRequest |
(empty response body)
- Content-Type: application/json
- Accept: Not defined
[Back to top] [Back to API list] [Back to Model list] [Back to README]
DeleteOrganizationScope(ctx, id).Execute()
Delete organization scope
package main
import (
"context"
"fmt"
"os"
logto "github.com/mostafa/go-api-client"
)
func main() {
id := "id_example" // string | The unique identifier of the organization scope.
configuration := logto.NewConfiguration()
apiClient := logto.NewAPIClient(configuration)
r, err := apiClient.OrganizationScopesAPI.DeleteOrganizationScope(context.Background(), id).Execute()
if err != nil {
fmt.Fprintf(os.Stderr, "Error when calling `OrganizationScopesAPI.DeleteOrganizationScope``: %v\n", err)
fmt.Fprintf(os.Stderr, "Full HTTP response: %v\n", r)
}
}
Name | Type | Description | Notes |
---|---|---|---|
ctx | context.Context | context for authentication, logging, cancellation, deadlines, tracing, etc. | |
id | string | The unique identifier of the organization scope. |
Other parameters are passed through a pointer to a apiDeleteOrganizationScopeRequest struct via the builder pattern
Name | Type | Description | Notes |
---|
(empty response body)
- Content-Type: Not defined
- Accept: Not defined
[Back to top] [Back to API list] [Back to Model list] [Back to README]
ListOrganizationRoleScopes200ResponseInner GetOrganizationScope(ctx, id).Execute()
Get organization scope
package main
import (
"context"
"fmt"
"os"
logto "github.com/mostafa/go-api-client"
)
func main() {
id := "id_example" // string | The unique identifier of the organization scope.
configuration := logto.NewConfiguration()
apiClient := logto.NewAPIClient(configuration)
resp, r, err := apiClient.OrganizationScopesAPI.GetOrganizationScope(context.Background(), id).Execute()
if err != nil {
fmt.Fprintf(os.Stderr, "Error when calling `OrganizationScopesAPI.GetOrganizationScope``: %v\n", err)
fmt.Fprintf(os.Stderr, "Full HTTP response: %v\n", r)
}
// response from `GetOrganizationScope`: ListOrganizationRoleScopes200ResponseInner
fmt.Fprintf(os.Stdout, "Response from `OrganizationScopesAPI.GetOrganizationScope`: %v\n", resp)
}
Name | Type | Description | Notes |
---|---|---|---|
ctx | context.Context | context for authentication, logging, cancellation, deadlines, tracing, etc. | |
id | string | The unique identifier of the organization scope. |
Other parameters are passed through a pointer to a apiGetOrganizationScopeRequest struct via the builder pattern
Name | Type | Description | Notes |
---|
ListOrganizationRoleScopes200ResponseInner
- Content-Type: Not defined
- Accept: application/json
[Back to top] [Back to API list] [Back to Model list] [Back to README]
[]ListOrganizationRoleScopes200ResponseInner ListOrganizationScopes(ctx).Q(q).Page(page).PageSize(pageSize).Execute()
Get organization scopes
package main
import (
"context"
"fmt"
"os"
logto "github.com/mostafa/go-api-client"
)
func main() {
q := "q_example" // string | (optional)
page := int32(56) // int32 | Page number (starts from 1). (optional) (default to 1)
pageSize := int32(56) // int32 | Entries per page. (optional) (default to 20)
configuration := logto.NewConfiguration()
apiClient := logto.NewAPIClient(configuration)
resp, r, err := apiClient.OrganizationScopesAPI.ListOrganizationScopes(context.Background()).Q(q).Page(page).PageSize(pageSize).Execute()
if err != nil {
fmt.Fprintf(os.Stderr, "Error when calling `OrganizationScopesAPI.ListOrganizationScopes``: %v\n", err)
fmt.Fprintf(os.Stderr, "Full HTTP response: %v\n", r)
}
// response from `ListOrganizationScopes`: []ListOrganizationRoleScopes200ResponseInner
fmt.Fprintf(os.Stdout, "Response from `OrganizationScopesAPI.ListOrganizationScopes`: %v\n", resp)
}
Other parameters are passed through a pointer to a apiListOrganizationScopesRequest struct via the builder pattern
Name | Type | Description | Notes |
---|---|---|---|
q | string | ||
page | int32 | Page number (starts from 1). | [default to 1] |
pageSize | int32 | Entries per page. | [default to 20] |
[]ListOrganizationRoleScopes200ResponseInner
- Content-Type: Not defined
- Accept: application/json
[Back to top] [Back to API list] [Back to Model list] [Back to README]
ListOrganizationRoleScopes200ResponseInner UpdateOrganizationScope(ctx, id).UpdateOrganizationScopeRequest(updateOrganizationScopeRequest).Execute()
Update organization scope
package main
import (
"context"
"fmt"
"os"
logto "github.com/mostafa/go-api-client"
)
func main() {
id := "id_example" // string | The unique identifier of the organization scope.
updateOrganizationScopeRequest := *logto.NewUpdateOrganizationScopeRequest() // UpdateOrganizationScopeRequest |
configuration := logto.NewConfiguration()
apiClient := logto.NewAPIClient(configuration)
resp, r, err := apiClient.OrganizationScopesAPI.UpdateOrganizationScope(context.Background(), id).UpdateOrganizationScopeRequest(updateOrganizationScopeRequest).Execute()
if err != nil {
fmt.Fprintf(os.Stderr, "Error when calling `OrganizationScopesAPI.UpdateOrganizationScope``: %v\n", err)
fmt.Fprintf(os.Stderr, "Full HTTP response: %v\n", r)
}
// response from `UpdateOrganizationScope`: ListOrganizationRoleScopes200ResponseInner
fmt.Fprintf(os.Stdout, "Response from `OrganizationScopesAPI.UpdateOrganizationScope`: %v\n", resp)
}
Name | Type | Description | Notes |
---|---|---|---|
ctx | context.Context | context for authentication, logging, cancellation, deadlines, tracing, etc. | |
id | string | The unique identifier of the organization scope. |
Other parameters are passed through a pointer to a apiUpdateOrganizationScopeRequest struct via the builder pattern
Name | Type | Description | Notes |
---|
updateOrganizationScopeRequest | UpdateOrganizationScopeRequest | |
ListOrganizationRoleScopes200ResponseInner
- Content-Type: application/json
- Accept: application/json
[Back to top] [Back to API list] [Back to Model list] [Back to README]