5.9 KiB
\DebugItemsMaybeDontShowThisInUIAPI
All URIs are relative to http://localhost
| Method | HTTP request | Description |
|---|---|---|
| AddCardManuallyApiV1DebugAddcardPut | Put /api/v1/debug/addcard/ | Add Card Manually |
| ListAllCardsApiV1DebugGetcardsPut | Put /api/v1/debug/getcards | List All Cards |
| RemoveCardManuallyApiV1DebugRmcardCardIdGet | Get /api/v1/debug/rmcard/{card_id} | Remove Card Manually |
AddCardManuallyApiV1DebugAddcardPut
interface{} AddCardManuallyApiV1DebugAddcardPut(ctx).Groupid(groupid).CardKey(cardKey).Name(name).Enabled(enabled).Execute()
Add Card Manually
Example
package main
import (
"context"
"fmt"
"os"
openapiclient "github.com/GIT_USER_ID/GIT_REPO_ID"
)
func main() {
groupid := int32(56) // int32 |
cardKey := "cardKey_example" // string |
name := "name_example" // string |
enabled := true // bool |
configuration := openapiclient.NewConfiguration()
apiClient := openapiclient.NewAPIClient(configuration)
resp, r, err := apiClient.DebugItemsMaybeDontShowThisInUIAPI.AddCardManuallyApiV1DebugAddcardPut(context.Background()).Groupid(groupid).CardKey(cardKey).Name(name).Enabled(enabled).Execute()
if err != nil {
fmt.Fprintf(os.Stderr, "Error when calling `DebugItemsMaybeDontShowThisInUIAPI.AddCardManuallyApiV1DebugAddcardPut``: %v\n", err)
fmt.Fprintf(os.Stderr, "Full HTTP response: %v\n", r)
}
// response from `AddCardManuallyApiV1DebugAddcardPut`: interface{}
fmt.Fprintf(os.Stdout, "Response from `DebugItemsMaybeDontShowThisInUIAPI.AddCardManuallyApiV1DebugAddcardPut`: %v\n", resp)
}
Path Parameters
Other Parameters
Other parameters are passed through a pointer to a apiAddCardManuallyApiV1DebugAddcardPutRequest struct via the builder pattern
| Name | Type | Description | Notes |
|---|---|---|---|
| groupid | int32 | ||
| cardKey | string | ||
| name | string | ||
| enabled | bool |
Return type
interface{}
Authorization
HTTP request headers
- Content-Type: Not defined
- Accept: application/json
[Back to top] [Back to API list] [Back to Model list] [Back to README]
ListAllCardsApiV1DebugGetcardsPut
interface{} ListAllCardsApiV1DebugGetcardsPut(ctx).Execute()
List All Cards
Example
package main
import (
"context"
"fmt"
"os"
openapiclient "github.com/GIT_USER_ID/GIT_REPO_ID"
)
func main() {
configuration := openapiclient.NewConfiguration()
apiClient := openapiclient.NewAPIClient(configuration)
resp, r, err := apiClient.DebugItemsMaybeDontShowThisInUIAPI.ListAllCardsApiV1DebugGetcardsPut(context.Background()).Execute()
if err != nil {
fmt.Fprintf(os.Stderr, "Error when calling `DebugItemsMaybeDontShowThisInUIAPI.ListAllCardsApiV1DebugGetcardsPut``: %v\n", err)
fmt.Fprintf(os.Stderr, "Full HTTP response: %v\n", r)
}
// response from `ListAllCardsApiV1DebugGetcardsPut`: interface{}
fmt.Fprintf(os.Stdout, "Response from `DebugItemsMaybeDontShowThisInUIAPI.ListAllCardsApiV1DebugGetcardsPut`: %v\n", resp)
}
Path Parameters
This endpoint does not need any parameter.
Other Parameters
Other parameters are passed through a pointer to a apiListAllCardsApiV1DebugGetcardsPutRequest struct via the builder pattern
Return type
interface{}
Authorization
HTTP request headers
- Content-Type: Not defined
- Accept: application/json
[Back to top] [Back to API list] [Back to Model list] [Back to README]
RemoveCardManuallyApiV1DebugRmcardCardIdGet
interface{} RemoveCardManuallyApiV1DebugRmcardCardIdGet(ctx, cardId).Execute()
Remove Card Manually
Example
package main
import (
"context"
"fmt"
"os"
openapiclient "github.com/GIT_USER_ID/GIT_REPO_ID"
)
func main() {
cardId := "cardId_example" // string |
configuration := openapiclient.NewConfiguration()
apiClient := openapiclient.NewAPIClient(configuration)
resp, r, err := apiClient.DebugItemsMaybeDontShowThisInUIAPI.RemoveCardManuallyApiV1DebugRmcardCardIdGet(context.Background(), cardId).Execute()
if err != nil {
fmt.Fprintf(os.Stderr, "Error when calling `DebugItemsMaybeDontShowThisInUIAPI.RemoveCardManuallyApiV1DebugRmcardCardIdGet``: %v\n", err)
fmt.Fprintf(os.Stderr, "Full HTTP response: %v\n", r)
}
// response from `RemoveCardManuallyApiV1DebugRmcardCardIdGet`: interface{}
fmt.Fprintf(os.Stdout, "Response from `DebugItemsMaybeDontShowThisInUIAPI.RemoveCardManuallyApiV1DebugRmcardCardIdGet`: %v\n", resp)
}
Path Parameters
| Name | Type | Description | Notes |
|---|---|---|---|
| ctx | context.Context | context for authentication, logging, cancellation, deadlines, tracing, etc. | |
| cardId | string |
Other Parameters
Other parameters are passed through a pointer to a apiRemoveCardManuallyApiV1DebugRmcardCardIdGetRequest struct via the builder pattern
| Name | Type | Description | Notes |
|---|
Return type
interface{}
Authorization
HTTP request headers
- Content-Type: Not defined
- Accept: application/json
[Back to top] [Back to API list] [Back to Model list] [Back to README]