All URIs are relative to http://localhost:7878
Method | HTTP request | Description |
---|---|---|
CreateRootFolder | Post /api/v3/rootfolder | |
DeleteRootFolder | Delete /api/v3/rootfolder/{id} | |
GetRootFolderById | Get /api/v3/rootfolder/{id} | |
ListRootFolder | Get /api/v3/rootfolder |
RootFolderResource CreateRootFolder(ctx).RootFolderResource(rootFolderResource).Execute()
package main
import (
"context"
"fmt"
"os"
radarrClient "github.com/devopsarr/radarr-go/radarr"
)
func main() {
rootFolderResource := *radarrClient.NewRootFolderResource() // RootFolderResource | (optional)
configuration := radarrClient.NewConfiguration()
apiClient := radarrClient.NewAPIClient(configuration)
resp, r, err := apiClient.RootFolderAPI.CreateRootFolder(context.Background()).RootFolderResource(rootFolderResource).Execute()
if err != nil {
fmt.Fprintf(os.Stderr, "Error when calling `RootFolderAPI.CreateRootFolder``: %v\n", err)
fmt.Fprintf(os.Stderr, "Full HTTP response: %v\n", r)
}
// response from `CreateRootFolder`: RootFolderResource
fmt.Fprintf(os.Stdout, "Response from `RootFolderAPI.CreateRootFolder`: %v\n", resp)
}
Other parameters are passed through a pointer to a apiCreateRootFolderRequest struct via the builder pattern
Name | Type | Description | Notes |
---|---|---|---|
rootFolderResource | RootFolderResource |
- Content-Type: application/json
- Accept: text/plain, application/json, text/json
[Back to top] [Back to API list] [Back to Model list] [Back to README]
DeleteRootFolder(ctx, id).Execute()
package main
import (
"context"
"fmt"
"os"
radarrClient "github.com/devopsarr/radarr-go/radarr"
)
func main() {
id := int32(56) // int32 |
configuration := radarrClient.NewConfiguration()
apiClient := radarrClient.NewAPIClient(configuration)
r, err := apiClient.RootFolderAPI.DeleteRootFolder(context.Background(), id).Execute()
if err != nil {
fmt.Fprintf(os.Stderr, "Error when calling `RootFolderAPI.DeleteRootFolder``: %v\n", err)
fmt.Fprintf(os.Stderr, "Full HTTP response: %v\n", r)
}
}
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 apiDeleteRootFolderRequest struct via the builder pattern
Name | Type | Description | Notes |
---|
(empty response body)
- Content-Type: Not defined
- Accept: Not defined
[Back to top] [Back to API list] [Back to Model list] [Back to README]
RootFolderResource GetRootFolderById(ctx, id).Execute()
package main
import (
"context"
"fmt"
"os"
radarrClient "github.com/devopsarr/radarr-go/radarr"
)
func main() {
id := int32(56) // int32 |
configuration := radarrClient.NewConfiguration()
apiClient := radarrClient.NewAPIClient(configuration)
resp, r, err := apiClient.RootFolderAPI.GetRootFolderById(context.Background(), id).Execute()
if err != nil {
fmt.Fprintf(os.Stderr, "Error when calling `RootFolderAPI.GetRootFolderById``: %v\n", err)
fmt.Fprintf(os.Stderr, "Full HTTP response: %v\n", r)
}
// response from `GetRootFolderById`: RootFolderResource
fmt.Fprintf(os.Stdout, "Response from `RootFolderAPI.GetRootFolderById`: %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 apiGetRootFolderByIdRequest struct via the builder pattern
Name | Type | Description | Notes |
---|
- 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]
[]RootFolderResource ListRootFolder(ctx).Execute()
package main
import (
"context"
"fmt"
"os"
radarrClient "github.com/devopsarr/radarr-go/radarr"
)
func main() {
configuration := radarrClient.NewConfiguration()
apiClient := radarrClient.NewAPIClient(configuration)
resp, r, err := apiClient.RootFolderAPI.ListRootFolder(context.Background()).Execute()
if err != nil {
fmt.Fprintf(os.Stderr, "Error when calling `RootFolderAPI.ListRootFolder``: %v\n", err)
fmt.Fprintf(os.Stderr, "Full HTTP response: %v\n", r)
}
// response from `ListRootFolder`: []RootFolderResource
fmt.Fprintf(os.Stdout, "Response from `RootFolderAPI.ListRootFolder`: %v\n", resp)
}
This endpoint does not need any parameter.
Other parameters are passed through a pointer to a apiListRootFolderRequest 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]