All URIs are relative to http://localhost:8787
| Method | HTTP request | Description |
|---|---|---|
| GetDevelopmentConfig | Get /api/v1/config/development | |
| GetDevelopmentConfigById | Get /api/v1/config/development/{id} | |
| UpdateDevelopmentConfig | Put /api/v1/config/development/{id} |
DevelopmentConfigResource GetDevelopmentConfig(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.DevelopmentConfigAPI.GetDevelopmentConfig(context.Background()).Execute()
if err != nil {
fmt.Fprintf(os.Stderr, "Error when calling `DevelopmentConfigAPI.GetDevelopmentConfig``: %v\n", err)
fmt.Fprintf(os.Stderr, "Full HTTP response: %v\n", r)
}
// response from `GetDevelopmentConfig`: DevelopmentConfigResource
fmt.Fprintf(os.Stdout, "Response from `DevelopmentConfigAPI.GetDevelopmentConfig`: %v\n", resp)
}This endpoint does not need any parameter.
Other parameters are passed through a pointer to a apiGetDevelopmentConfigRequest 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]
DevelopmentConfigResource GetDevelopmentConfigById(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.DevelopmentConfigAPI.GetDevelopmentConfigById(context.Background(), id).Execute()
if err != nil {
fmt.Fprintf(os.Stderr, "Error when calling `DevelopmentConfigAPI.GetDevelopmentConfigById``: %v\n", err)
fmt.Fprintf(os.Stderr, "Full HTTP response: %v\n", r)
}
// response from `GetDevelopmentConfigById`: DevelopmentConfigResource
fmt.Fprintf(os.Stdout, "Response from `DevelopmentConfigAPI.GetDevelopmentConfigById`: %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 apiGetDevelopmentConfigByIdRequest 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]
DevelopmentConfigResource UpdateDevelopmentConfig(ctx, id).DevelopmentConfigResource(developmentConfigResource).Execute()
package main
import (
"context"
"fmt"
"os"
readarrClient "github.com/devopsarr/readarr-go/readarr"
)
func main() {
id := "id_example" // string |
developmentConfigResource := *readarrClient.NewDevelopmentConfigResource() // DevelopmentConfigResource | (optional)
configuration := readarrClient.NewConfiguration()
apiClient := readarrClient.NewAPIClient(configuration)
resp, r, err := apiClient.DevelopmentConfigAPI.UpdateDevelopmentConfig(context.Background(), id).DevelopmentConfigResource(developmentConfigResource).Execute()
if err != nil {
fmt.Fprintf(os.Stderr, "Error when calling `DevelopmentConfigAPI.UpdateDevelopmentConfig``: %v\n", err)
fmt.Fprintf(os.Stderr, "Full HTTP response: %v\n", r)
}
// response from `UpdateDevelopmentConfig`: DevelopmentConfigResource
fmt.Fprintf(os.Stdout, "Response from `DevelopmentConfigAPI.UpdateDevelopmentConfig`: %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 apiUpdateDevelopmentConfigRequest struct via the builder pattern
| Name | Type | Description | Notes |
|---|
developmentConfigResource | DevelopmentConfigResource | |
- 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]