All URIs are relative to http://localhost:9080
| Method | HTTP request | Description |
|---|---|---|
| ApisUserV1GroupsGet | Get /apis/user/v1/groups | |
| ApisUserV1GroupsNameGet | Get /apis/user/v1/groups/{name} | |
| ApisUserV1GroupsNamePut | Put /apis/user/v1/groups/{name} | |
| ApisUserV1GroupsPost | Post /apis/user/v1/groups | |
| ApisUserV1UsersGet | Get /apis/user/v1/users | |
| ApisUserV1UsersNameGet | Get /apis/user/v1/users/{name} |
GroupList ApisUserV1GroupsGet(ctx).Execute()
package main
import (
"context"
"fmt"
"os"
openapiclient "github.com/shnplr/kssapi"
)
func main() {
configuration := openapiclient.NewConfiguration()
apiClient := openapiclient.NewAPIClient(configuration)
resp, r, err := apiClient.UserGroupsResourceApi.ApisUserV1GroupsGet(context.Background()).Execute()
if err != nil {
fmt.Fprintf(os.Stderr, "Error when calling `UserGroupsResourceApi.ApisUserV1GroupsGet``: %v\n", err)
fmt.Fprintf(os.Stderr, "Full HTTP response: %v\n", r)
}
// response from `ApisUserV1GroupsGet`: GroupList
fmt.Fprintf(os.Stdout, "Response from `UserGroupsResourceApi.ApisUserV1GroupsGet`: %v\n", resp)
}This endpoint does not need any parameter.
Other parameters are passed through a pointer to a apiApisUserV1GroupsGetRequest struct via the builder pattern
- Content-Type: Not defined
- Accept: application/json
[Back to top] [Back to API list] [Back to Model list] [Back to README]
Group ApisUserV1GroupsNameGet(ctx, name).Execute()
package main
import (
"context"
"fmt"
"os"
openapiclient "github.com/shnplr/kssapi"
)
func main() {
name := "name_example" // string |
configuration := openapiclient.NewConfiguration()
apiClient := openapiclient.NewAPIClient(configuration)
resp, r, err := apiClient.UserGroupsResourceApi.ApisUserV1GroupsNameGet(context.Background(), name).Execute()
if err != nil {
fmt.Fprintf(os.Stderr, "Error when calling `UserGroupsResourceApi.ApisUserV1GroupsNameGet``: %v\n", err)
fmt.Fprintf(os.Stderr, "Full HTTP response: %v\n", r)
}
// response from `ApisUserV1GroupsNameGet`: Group
fmt.Fprintf(os.Stdout, "Response from `UserGroupsResourceApi.ApisUserV1GroupsNameGet`: %v\n", resp)
}| Name | Type | Description | Notes |
|---|---|---|---|
| ctx | context.Context | context for authentication, logging, cancellation, deadlines, tracing, etc. | |
| name | string |
Other parameters are passed through a pointer to a apiApisUserV1GroupsNameGetRequest struct via the builder pattern
| Name | Type | Description | Notes |
|---|
- Content-Type: Not defined
- Accept: application/json
[Back to top] [Back to API list] [Back to Model list] [Back to README]
Group ApisUserV1GroupsNamePut(ctx, name).Group(group).Execute()
package main
import (
"context"
"fmt"
"os"
openapiclient "github.com/shnplr/kssapi"
)
func main() {
name := "name_example" // string |
group := *openapiclient.NewGroup() // Group | (optional)
configuration := openapiclient.NewConfiguration()
apiClient := openapiclient.NewAPIClient(configuration)
resp, r, err := apiClient.UserGroupsResourceApi.ApisUserV1GroupsNamePut(context.Background(), name).Group(group).Execute()
if err != nil {
fmt.Fprintf(os.Stderr, "Error when calling `UserGroupsResourceApi.ApisUserV1GroupsNamePut``: %v\n", err)
fmt.Fprintf(os.Stderr, "Full HTTP response: %v\n", r)
}
// response from `ApisUserV1GroupsNamePut`: Group
fmt.Fprintf(os.Stdout, "Response from `UserGroupsResourceApi.ApisUserV1GroupsNamePut`: %v\n", resp)
}| Name | Type | Description | Notes |
|---|---|---|---|
| ctx | context.Context | context for authentication, logging, cancellation, deadlines, tracing, etc. | |
| name | string |
Other parameters are passed through a pointer to a apiApisUserV1GroupsNamePutRequest struct via the builder pattern
| Name | Type | Description | Notes |
|---|
group | Group | |
- Content-Type: application/json
- Accept: application/json
[Back to top] [Back to API list] [Back to Model list] [Back to README]
Group ApisUserV1GroupsPost(ctx).Group(group).Execute()
package main
import (
"context"
"fmt"
"os"
openapiclient "github.com/shnplr/kssapi"
)
func main() {
group := *openapiclient.NewGroup() // Group | (optional)
configuration := openapiclient.NewConfiguration()
apiClient := openapiclient.NewAPIClient(configuration)
resp, r, err := apiClient.UserGroupsResourceApi.ApisUserV1GroupsPost(context.Background()).Group(group).Execute()
if err != nil {
fmt.Fprintf(os.Stderr, "Error when calling `UserGroupsResourceApi.ApisUserV1GroupsPost``: %v\n", err)
fmt.Fprintf(os.Stderr, "Full HTTP response: %v\n", r)
}
// response from `ApisUserV1GroupsPost`: Group
fmt.Fprintf(os.Stdout, "Response from `UserGroupsResourceApi.ApisUserV1GroupsPost`: %v\n", resp)
}Other parameters are passed through a pointer to a apiApisUserV1GroupsPostRequest struct via the builder pattern
| Name | Type | Description | Notes |
|---|---|---|---|
| group | Group |
- Content-Type: application/json
- Accept: application/json
[Back to top] [Back to API list] [Back to Model list] [Back to README]
UserList ApisUserV1UsersGet(ctx).Execute()
package main
import (
"context"
"fmt"
"os"
openapiclient "github.com/shnplr/kssapi"
)
func main() {
configuration := openapiclient.NewConfiguration()
apiClient := openapiclient.NewAPIClient(configuration)
resp, r, err := apiClient.UserGroupsResourceApi.ApisUserV1UsersGet(context.Background()).Execute()
if err != nil {
fmt.Fprintf(os.Stderr, "Error when calling `UserGroupsResourceApi.ApisUserV1UsersGet``: %v\n", err)
fmt.Fprintf(os.Stderr, "Full HTTP response: %v\n", r)
}
// response from `ApisUserV1UsersGet`: UserList
fmt.Fprintf(os.Stdout, "Response from `UserGroupsResourceApi.ApisUserV1UsersGet`: %v\n", resp)
}This endpoint does not need any parameter.
Other parameters are passed through a pointer to a apiApisUserV1UsersGetRequest struct via the builder pattern
- Content-Type: Not defined
- Accept: application/json
[Back to top] [Back to API list] [Back to Model list] [Back to README]
User ApisUserV1UsersNameGet(ctx, name).Execute()
package main
import (
"context"
"fmt"
"os"
openapiclient "github.com/shnplr/kssapi"
)
func main() {
name := "name_example" // string |
configuration := openapiclient.NewConfiguration()
apiClient := openapiclient.NewAPIClient(configuration)
resp, r, err := apiClient.UserGroupsResourceApi.ApisUserV1UsersNameGet(context.Background(), name).Execute()
if err != nil {
fmt.Fprintf(os.Stderr, "Error when calling `UserGroupsResourceApi.ApisUserV1UsersNameGet``: %v\n", err)
fmt.Fprintf(os.Stderr, "Full HTTP response: %v\n", r)
}
// response from `ApisUserV1UsersNameGet`: User
fmt.Fprintf(os.Stdout, "Response from `UserGroupsResourceApi.ApisUserV1UsersNameGet`: %v\n", resp)
}| Name | Type | Description | Notes |
|---|---|---|---|
| ctx | context.Context | context for authentication, logging, cancellation, deadlines, tracing, etc. | |
| name | string |
Other parameters are passed through a pointer to a apiApisUserV1UsersNameGetRequest struct via the builder pattern
| Name | Type | Description | Notes |
|---|
- Content-Type: Not defined
- Accept: application/json
[Back to top] [Back to API list] [Back to Model list] [Back to README]