[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,15 +4,15 @@ All URIs are relative to *http://localhost*
Method | HTTP request | Description
------------- | ------------- | -------------
[**AddCardCardsGroupIdPost**](CardAPI.md#AddCardCardsGroupIdPost) | **Post** /cards/{group_id} | Add Card
[**DelCardCardsDeleteGet**](CardAPI.md#DelCardCardsDeleteGet) | **Get** /cards/delete | Del Card
[**GetCardsCardsGroupIdGet**](CardAPI.md#GetCardsCardsGroupIdGet) | **Get** /cards/{group_id} | Get Cards
[**AddCardApiV1CardsGroupIdPost**](CardAPI.md#AddCardApiV1CardsGroupIdPost) | **Post** /api/v1/cards/{group_id} | Add Card
[**DelCardApiV1CardsDeleteGet**](CardAPI.md#DelCardApiV1CardsDeleteGet) | **Get** /api/v1/cards/delete | Del Card
[**GetCardsApiV1CardsGroupIdGet**](CardAPI.md#GetCardsApiV1CardsGroupIdGet) | **Get** /api/v1/cards/{group_id} | Get Cards
## AddCardCardsGroupIdPost
## AddCardApiV1CardsGroupIdPost
> Card AddCardCardsGroupIdPost(ctx, groupId).Execute()
> Card AddCardApiV1CardsGroupIdPost(ctx, groupId).Execute()
Add Card
@@ -33,13 +33,13 @@ func main() {
configuration := openapiclient.NewConfiguration()
apiClient := openapiclient.NewAPIClient(configuration)
resp, r, err := apiClient.CardAPI.AddCardCardsGroupIdPost(context.Background(), groupId).Execute()
resp, r, err := apiClient.CardAPI.AddCardApiV1CardsGroupIdPost(context.Background(), groupId).Execute()
if err != nil {
fmt.Fprintf(os.Stderr, "Error when calling `CardAPI.AddCardCardsGroupIdPost``: %v\n", err)
fmt.Fprintf(os.Stderr, "Error when calling `CardAPI.AddCardApiV1CardsGroupIdPost``: %v\n", err)
fmt.Fprintf(os.Stderr, "Full HTTP response: %v\n", r)
}
// response from `AddCardCardsGroupIdPost`: Card
fmt.Fprintf(os.Stdout, "Response from `CardAPI.AddCardCardsGroupIdPost`: %v\n", resp)
// response from `AddCardApiV1CardsGroupIdPost`: Card
fmt.Fprintf(os.Stdout, "Response from `CardAPI.AddCardApiV1CardsGroupIdPost`: %v\n", resp)
}
```
@@ -53,7 +53,7 @@ Name | Type | Description | Notes
### Other Parameters
Other parameters are passed through a pointer to a apiAddCardCardsGroupIdPostRequest struct via the builder pattern
Other parameters are passed through a pointer to a apiAddCardApiV1CardsGroupIdPostRequest struct via the builder pattern
Name | Type | Description | Notes
@@ -78,9 +78,9 @@ Name | Type | Description | Notes
[[Back to README]](../README.md)
## DelCardCardsDeleteGet
## DelCardApiV1CardsDeleteGet
> interface{} DelCardCardsDeleteGet(ctx).Execute()
> interface{} DelCardApiV1CardsDeleteGet(ctx).Execute()
Del Card
@@ -100,13 +100,13 @@ func main() {
configuration := openapiclient.NewConfiguration()
apiClient := openapiclient.NewAPIClient(configuration)
resp, r, err := apiClient.CardAPI.DelCardCardsDeleteGet(context.Background()).Execute()
resp, r, err := apiClient.CardAPI.DelCardApiV1CardsDeleteGet(context.Background()).Execute()
if err != nil {
fmt.Fprintf(os.Stderr, "Error when calling `CardAPI.DelCardCardsDeleteGet``: %v\n", err)
fmt.Fprintf(os.Stderr, "Error when calling `CardAPI.DelCardApiV1CardsDeleteGet``: %v\n", err)
fmt.Fprintf(os.Stderr, "Full HTTP response: %v\n", r)
}
// response from `DelCardCardsDeleteGet`: interface{}
fmt.Fprintf(os.Stdout, "Response from `CardAPI.DelCardCardsDeleteGet`: %v\n", resp)
// response from `DelCardApiV1CardsDeleteGet`: interface{}
fmt.Fprintf(os.Stdout, "Response from `CardAPI.DelCardApiV1CardsDeleteGet`: %v\n", resp)
}
```
@@ -116,7 +116,7 @@ This endpoint does not need any parameter.
### Other Parameters
Other parameters are passed through a pointer to a apiDelCardCardsDeleteGetRequest struct via the builder pattern
Other parameters are passed through a pointer to a apiDelCardApiV1CardsDeleteGetRequest struct via the builder pattern
### Return type
@@ -137,9 +137,9 @@ Other parameters are passed through a pointer to a apiDelCardCardsDeleteGetReque
[[Back to README]](../README.md)
## GetCardsCardsGroupIdGet
## GetCardsApiV1CardsGroupIdGet
> []Card GetCardsCardsGroupIdGet(ctx, groupId).Execute()
> []Card GetCardsApiV1CardsGroupIdGet(ctx, groupId).Execute()
Get Cards
@@ -160,13 +160,13 @@ func main() {
configuration := openapiclient.NewConfiguration()
apiClient := openapiclient.NewAPIClient(configuration)
resp, r, err := apiClient.CardAPI.GetCardsCardsGroupIdGet(context.Background(), groupId).Execute()
resp, r, err := apiClient.CardAPI.GetCardsApiV1CardsGroupIdGet(context.Background(), groupId).Execute()
if err != nil {
fmt.Fprintf(os.Stderr, "Error when calling `CardAPI.GetCardsCardsGroupIdGet``: %v\n", err)
fmt.Fprintf(os.Stderr, "Error when calling `CardAPI.GetCardsApiV1CardsGroupIdGet``: %v\n", err)
fmt.Fprintf(os.Stderr, "Full HTTP response: %v\n", r)
}
// response from `GetCardsCardsGroupIdGet`: []Card
fmt.Fprintf(os.Stdout, "Response from `CardAPI.GetCardsCardsGroupIdGet`: %v\n", resp)
// response from `GetCardsApiV1CardsGroupIdGet`: []Card
fmt.Fprintf(os.Stdout, "Response from `CardAPI.GetCardsApiV1CardsGroupIdGet`: %v\n", resp)
}
```
@@ -180,7 +180,7 @@ Name | Type | Description | Notes
### Other Parameters
Other parameters are passed through a pointer to a apiGetCardsCardsGroupIdGetRequest struct via the builder pattern
Other parameters are passed through a pointer to a apiGetCardsApiV1CardsGroupIdGetRequest struct via the builder pattern
Name | Type | Description | Notes