[api] chore: update api

This commit is contained in:
2026-06-25 11:26:20 +02:00
parent 3d86f9603d
commit 539c0216f5
20 changed files with 866 additions and 594 deletions

View File

@@ -4,14 +4,14 @@ All URIs are relative to *http://localhost*
Method | HTTP request | Description
------------- | ------------- | -------------
[**LoginForAccessTokenTokenPost**](TokenAPI.md#LoginForAccessTokenTokenPost) | **Post** /token | Login For Access Token
[**TestLoginTestLoginGet**](TokenAPI.md#TestLoginTestLoginGet) | **Get** /test/login | Test Login
[**LoginForAccessTokenApiV1TokenPost**](TokenAPI.md#LoginForAccessTokenApiV1TokenPost) | **Post** /api/v1/token | Login For Access Token
[**TestLoginApiV1TestLoginGet**](TokenAPI.md#TestLoginApiV1TestLoginGet) | **Get** /api/v1/test/login | Test Login
## LoginForAccessTokenTokenPost
## LoginForAccessTokenApiV1TokenPost
> Token LoginForAccessTokenTokenPost(ctx).Username(username).Password(password).GrantType(grantType).Scope(scope).ClientId(clientId).ClientSecret(clientSecret).Execute()
> Token LoginForAccessTokenApiV1TokenPost(ctx).Username(username).Password(password).GrantType(grantType).Scope(scope).ClientId(clientId).ClientSecret(clientSecret).Execute()
Login For Access Token
@@ -37,13 +37,13 @@ func main() {
configuration := openapiclient.NewConfiguration()
apiClient := openapiclient.NewAPIClient(configuration)
resp, r, err := apiClient.TokenAPI.LoginForAccessTokenTokenPost(context.Background()).Username(username).Password(password).GrantType(grantType).Scope(scope).ClientId(clientId).ClientSecret(clientSecret).Execute()
resp, r, err := apiClient.TokenAPI.LoginForAccessTokenApiV1TokenPost(context.Background()).Username(username).Password(password).GrantType(grantType).Scope(scope).ClientId(clientId).ClientSecret(clientSecret).Execute()
if err != nil {
fmt.Fprintf(os.Stderr, "Error when calling `TokenAPI.LoginForAccessTokenTokenPost``: %v\n", err)
fmt.Fprintf(os.Stderr, "Error when calling `TokenAPI.LoginForAccessTokenApiV1TokenPost``: %v\n", err)
fmt.Fprintf(os.Stderr, "Full HTTP response: %v\n", r)
}
// response from `LoginForAccessTokenTokenPost`: Token
fmt.Fprintf(os.Stdout, "Response from `TokenAPI.LoginForAccessTokenTokenPost`: %v\n", resp)
// response from `LoginForAccessTokenApiV1TokenPost`: Token
fmt.Fprintf(os.Stdout, "Response from `TokenAPI.LoginForAccessTokenApiV1TokenPost`: %v\n", resp)
}
```
@@ -53,7 +53,7 @@ func main() {
### Other Parameters
Other parameters are passed through a pointer to a apiLoginForAccessTokenTokenPostRequest struct via the builder pattern
Other parameters are passed through a pointer to a apiLoginForAccessTokenApiV1TokenPostRequest struct via the builder pattern
Name | Type | Description | Notes
@@ -83,9 +83,9 @@ No authorization required
[[Back to README]](../README.md)
## TestLoginTestLoginGet
## TestLoginApiV1TestLoginGet
> UserDB TestLoginTestLoginGet(ctx).Execute()
> UserDB TestLoginApiV1TestLoginGet(ctx).Execute()
Test Login
@@ -105,13 +105,13 @@ func main() {
configuration := openapiclient.NewConfiguration()
apiClient := openapiclient.NewAPIClient(configuration)
resp, r, err := apiClient.TokenAPI.TestLoginTestLoginGet(context.Background()).Execute()
resp, r, err := apiClient.TokenAPI.TestLoginApiV1TestLoginGet(context.Background()).Execute()
if err != nil {
fmt.Fprintf(os.Stderr, "Error when calling `TokenAPI.TestLoginTestLoginGet``: %v\n", err)
fmt.Fprintf(os.Stderr, "Error when calling `TokenAPI.TestLoginApiV1TestLoginGet``: %v\n", err)
fmt.Fprintf(os.Stderr, "Full HTTP response: %v\n", r)
}
// response from `TestLoginTestLoginGet`: UserDB
fmt.Fprintf(os.Stdout, "Response from `TokenAPI.TestLoginTestLoginGet`: %v\n", resp)
// response from `TestLoginApiV1TestLoginGet`: UserDB
fmt.Fprintf(os.Stdout, "Response from `TokenAPI.TestLoginApiV1TestLoginGet`: %v\n", resp)
}
```
@@ -121,7 +121,7 @@ This endpoint does not need any parameter.
### Other Parameters
Other parameters are passed through a pointer to a apiTestLoginTestLoginGetRequest struct via the builder pattern
Other parameters are passed through a pointer to a apiTestLoginApiV1TestLoginGetRequest struct via the builder pattern
### Return type