All URIs are relative to http://localhost
Method | HTTP request | Description |
---|---|---|
GetCurrentUserInfo | Get /users/me | Get current user |
UserInfo GetCurrentUserInfo(ctx).Execute()
Get current user
package main
import (
"context"
"fmt"
"os"
openapiclient "github.com/Apicurio/apicurio-registry-client-sdk-go"
)
func main() {
configuration := openapiclient.NewConfiguration()
apiClient := openapiclient.NewAPIClient(configuration)
resp, r, err := apiClient.UsersAPI.GetCurrentUserInfo(context.Background()).Execute()
if err != nil {
fmt.Fprintf(os.Stderr, "Error when calling `UsersAPI.GetCurrentUserInfo``: %v\n", err)
fmt.Fprintf(os.Stderr, "Full HTTP response: %v\n", r)
}
// response from `GetCurrentUserInfo`: UserInfo
fmt.Fprintf(os.Stdout, "Response from `UsersAPI.GetCurrentUserInfo`: %v\n", resp)
}
This endpoint does not need any parameter.
Other parameters are passed through a pointer to a apiGetCurrentUserInfoRequest struct via the builder pattern
No authorization required
- Content-Type: Not defined
- Accept: application/json
[Back to top] [Back to API list] [Back to Model list] [Back to README]