All URIs are relative to http://localhost:8787
Method | HTTP request | Description |
---|---|---|
GetUiConfig | Get /api/v1/config/ui | |
GetUiConfigById | Get /api/v1/config/ui/{id} | |
UpdateUiConfig | Put /api/v1/config/ui/{id} |
UiConfigResource GetUiConfig(ctx).Execute()
package main
import (
"context"
"fmt"
"os"
readarrClient "github.com/devopsarr/readarr-go/readarr"
)
func main() {
configuration := readarrClient.NewConfiguration()
apiClient := readarrClient.NewAPIClient(configuration)
resp, r, err := apiClient.UiConfigAPI.GetUiConfig(context.Background()).Execute()
if err != nil {
fmt.Fprintf(os.Stderr, "Error when calling `UiConfigAPI.GetUiConfig``: %v\n", err)
fmt.Fprintf(os.Stderr, "Full HTTP response: %v\n", r)
}
// response from `GetUiConfig`: UiConfigResource
fmt.Fprintf(os.Stdout, "Response from `UiConfigAPI.GetUiConfig`: %v\n", resp)
}
This endpoint does not need any parameter.
Other parameters are passed through a pointer to a apiGetUiConfigRequest struct via the builder pattern
- Content-Type: Not defined
- Accept: text/plain, application/json, text/json
[Back to top] [Back to API list] [Back to Model list] [Back to README]
UiConfigResource GetUiConfigById(ctx, id).Execute()
package main
import (
"context"
"fmt"
"os"
readarrClient "github.com/devopsarr/readarr-go/readarr"
)
func main() {
id := int32(56) // int32 |
configuration := readarrClient.NewConfiguration()
apiClient := readarrClient.NewAPIClient(configuration)
resp, r, err := apiClient.UiConfigAPI.GetUiConfigById(context.Background(), id).Execute()
if err != nil {
fmt.Fprintf(os.Stderr, "Error when calling `UiConfigAPI.GetUiConfigById``: %v\n", err)
fmt.Fprintf(os.Stderr, "Full HTTP response: %v\n", r)
}
// response from `GetUiConfigById`: UiConfigResource
fmt.Fprintf(os.Stdout, "Response from `UiConfigAPI.GetUiConfigById`: %v\n", resp)
}
Name | Type | Description | Notes |
---|---|---|---|
ctx | context.Context | context for authentication, logging, cancellation, deadlines, tracing, etc. | |
id | int32 |
Other parameters are passed through a pointer to a apiGetUiConfigByIdRequest struct via the builder pattern
Name | Type | Description | Notes |
---|
- Content-Type: Not defined
- Accept: application/json
[Back to top] [Back to API list] [Back to Model list] [Back to README]
UiConfigResource UpdateUiConfig(ctx, id).UiConfigResource(uiConfigResource).Execute()
package main
import (
"context"
"fmt"
"os"
readarrClient "github.com/devopsarr/readarr-go/readarr"
)
func main() {
id := "id_example" // string |
uiConfigResource := *readarrClient.NewUiConfigResource() // UiConfigResource | (optional)
configuration := readarrClient.NewConfiguration()
apiClient := readarrClient.NewAPIClient(configuration)
resp, r, err := apiClient.UiConfigAPI.UpdateUiConfig(context.Background(), id).UiConfigResource(uiConfigResource).Execute()
if err != nil {
fmt.Fprintf(os.Stderr, "Error when calling `UiConfigAPI.UpdateUiConfig``: %v\n", err)
fmt.Fprintf(os.Stderr, "Full HTTP response: %v\n", r)
}
// response from `UpdateUiConfig`: UiConfigResource
fmt.Fprintf(os.Stdout, "Response from `UiConfigAPI.UpdateUiConfig`: %v\n", resp)
}
Name | Type | Description | Notes |
---|---|---|---|
ctx | context.Context | context for authentication, logging, cancellation, deadlines, tracing, etc. | |
id | string |
Other parameters are passed through a pointer to a apiUpdateUiConfigRequest struct via the builder pattern
Name | Type | Description | Notes |
---|
uiConfigResource | UiConfigResource | |
- Content-Type: application/json, text/json, application/*+json
- Accept: text/plain, application/json, text/json
[Back to top] [Back to API list] [Back to Model list] [Back to README]