udpate openapi spec

This commit is contained in:
2026-08-04 15:28:33 +02:00
parent e4acb6918a
commit fa7835c7e6
32 changed files with 2946 additions and 229 deletions

View File

@@ -4,15 +4,16 @@ All URIs are relative to *http://localhost*
Method | HTTP request | Description
------------- | ------------- | -------------
[**AddCardApiV1CardsGroupIdPost**](CardAPI.md#AddCardApiV1CardsGroupIdPost) | **Post** /api/v1/cards/{group_id} | Add Card
[**DelCardApiV1CardsDeleteGet**](CardAPI.md#DelCardApiV1CardsDeleteGet) | **Get** /api/v1/cards/delete | Del Card
[**AddCardApiV1CardsPost**](CardAPI.md#AddCardApiV1CardsPost) | **Post** /api/v1/cards/ | Add Card
[**DelCardApiV1CardsDelete**](CardAPI.md#DelCardApiV1CardsDelete) | **Delete** /api/v1/cards/ | Del Card
[**GetCardsApiV1CardsGroupIdGet**](CardAPI.md#GetCardsApiV1CardsGroupIdGet) | **Get** /api/v1/cards/{group_id} | Get Cards
[**UpdateCardApiV1CardsCardIdPatch**](CardAPI.md#UpdateCardApiV1CardsCardIdPatch) | **Patch** /api/v1/cards/{card_id} | Update Card
## AddCardApiV1CardsGroupIdPost
## AddCardApiV1CardsPost
> Card AddCardApiV1CardsGroupIdPost(ctx, groupId).Execute()
> Card AddCardApiV1CardsPost(ctx).CardCreate(cardCreate).Execute()
Add Card
@@ -29,36 +30,32 @@ import (
)
func main() {
groupId := int32(56) // int32 |
cardCreate := *openapiclient.NewCardCreate("Name_example", int32(123)) // CardCreate |
configuration := openapiclient.NewConfiguration()
apiClient := openapiclient.NewAPIClient(configuration)
resp, r, err := apiClient.CardAPI.AddCardApiV1CardsGroupIdPost(context.Background(), groupId).Execute()
resp, r, err := apiClient.CardAPI.AddCardApiV1CardsPost(context.Background()).CardCreate(cardCreate).Execute()
if err != nil {
fmt.Fprintf(os.Stderr, "Error when calling `CardAPI.AddCardApiV1CardsGroupIdPost``: %v\n", err)
fmt.Fprintf(os.Stderr, "Error when calling `CardAPI.AddCardApiV1CardsPost``: %v\n", err)
fmt.Fprintf(os.Stderr, "Full HTTP response: %v\n", r)
}
// response from `AddCardApiV1CardsGroupIdPost`: Card
fmt.Fprintf(os.Stdout, "Response from `CardAPI.AddCardApiV1CardsGroupIdPost`: %v\n", resp)
// response from `AddCardApiV1CardsPost`: Card
fmt.Fprintf(os.Stdout, "Response from `CardAPI.AddCardApiV1CardsPost`: %v\n", resp)
}
```
### Path Parameters
Name | Type | Description | Notes
------------- | ------------- | ------------- | -------------
**ctx** | **context.Context** | context for authentication, logging, cancellation, deadlines, tracing, etc.
**groupId** | **int32** | |
### Other Parameters
Other parameters are passed through a pointer to a apiAddCardApiV1CardsGroupIdPostRequest struct via the builder pattern
Other parameters are passed through a pointer to a apiAddCardApiV1CardsPostRequest struct via the builder pattern
Name | Type | Description | Notes
------------- | ------------- | ------------- | -------------
**cardCreate** | [**CardCreate**](CardCreate.md) | |
### Return type
@@ -70,7 +67,7 @@ Name | Type | Description | Notes
### HTTP request headers
- **Content-Type**: Not defined
- **Content-Type**: application/json
- **Accept**: application/json
[[Back to top]](#) [[Back to API list]](../README.md#documentation-for-api-endpoints)
@@ -78,9 +75,9 @@ Name | Type | Description | Notes
[[Back to README]](../README.md)
## DelCardApiV1CardsDeleteGet
## DelCardApiV1CardsDelete
> interface{} DelCardApiV1CardsDeleteGet(ctx).Execute()
> interface{} DelCardApiV1CardsDelete(ctx).Execute()
Del Card
@@ -100,13 +97,13 @@ func main() {
configuration := openapiclient.NewConfiguration()
apiClient := openapiclient.NewAPIClient(configuration)
resp, r, err := apiClient.CardAPI.DelCardApiV1CardsDeleteGet(context.Background()).Execute()
resp, r, err := apiClient.CardAPI.DelCardApiV1CardsDelete(context.Background()).Execute()
if err != nil {
fmt.Fprintf(os.Stderr, "Error when calling `CardAPI.DelCardApiV1CardsDeleteGet``: %v\n", err)
fmt.Fprintf(os.Stderr, "Error when calling `CardAPI.DelCardApiV1CardsDelete``: %v\n", err)
fmt.Fprintf(os.Stderr, "Full HTTP response: %v\n", r)
}
// response from `DelCardApiV1CardsDeleteGet`: interface{}
fmt.Fprintf(os.Stdout, "Response from `CardAPI.DelCardApiV1CardsDeleteGet`: %v\n", resp)
// response from `DelCardApiV1CardsDelete`: interface{}
fmt.Fprintf(os.Stdout, "Response from `CardAPI.DelCardApiV1CardsDelete`: %v\n", resp)
}
```
@@ -116,7 +113,7 @@ This endpoint does not need any parameter.
### Other Parameters
Other parameters are passed through a pointer to a apiDelCardApiV1CardsDeleteGetRequest struct via the builder pattern
Other parameters are passed through a pointer to a apiDelCardApiV1CardsDeleteRequest struct via the builder pattern
### Return type
@@ -204,3 +201,73 @@ Name | Type | Description | Notes
[[Back to Model list]](../README.md#documentation-for-models)
[[Back to README]](../README.md)
## UpdateCardApiV1CardsCardIdPatch
> Card UpdateCardApiV1CardsCardIdPatch(ctx, cardId).CardUpdate(cardUpdate).Execute()
Update Card
### Example
```go
package main
import (
"context"
"fmt"
"os"
openapiclient "github.com/GIT_USER_ID/GIT_REPO_ID"
)
func main() {
cardId := int32(56) // int32 |
cardUpdate := *openapiclient.NewCardUpdate() // CardUpdate |
configuration := openapiclient.NewConfiguration()
apiClient := openapiclient.NewAPIClient(configuration)
resp, r, err := apiClient.CardAPI.UpdateCardApiV1CardsCardIdPatch(context.Background(), cardId).CardUpdate(cardUpdate).Execute()
if err != nil {
fmt.Fprintf(os.Stderr, "Error when calling `CardAPI.UpdateCardApiV1CardsCardIdPatch``: %v\n", err)
fmt.Fprintf(os.Stderr, "Full HTTP response: %v\n", r)
}
// response from `UpdateCardApiV1CardsCardIdPatch`: Card
fmt.Fprintf(os.Stdout, "Response from `CardAPI.UpdateCardApiV1CardsCardIdPatch`: %v\n", resp)
}
```
### Path Parameters
Name | Type | Description | Notes
------------- | ------------- | ------------- | -------------
**ctx** | **context.Context** | context for authentication, logging, cancellation, deadlines, tracing, etc.
**cardId** | **int32** | |
### Other Parameters
Other parameters are passed through a pointer to a apiUpdateCardApiV1CardsCardIdPatchRequest struct via the builder pattern
Name | Type | Description | Notes
------------- | ------------- | ------------- | -------------
**cardUpdate** | [**CardUpdate**](CardUpdate.md) | |
### Return type
[**Card**](Card.md)
### Authorization
[OAuth2PasswordBearer](../README.md#OAuth2PasswordBearer)
### HTTP request headers
- **Content-Type**: application/json
- **Accept**: application/json
[[Back to top]](#) [[Back to API list]](../README.md#documentation-for-api-endpoints)
[[Back to Model list]](../README.md#documentation-for-models)
[[Back to README]](../README.md)