All URIs are relative to http://localhost:9696
| Method | HTTP request | Description |
|---|---|---|
| CreateAppProfile | Post /api/v1/appprofile | |
| DeleteAppProfile | Delete /api/v1/appprofile/{id} | |
| GetAppProfileById | Get /api/v1/appprofile/{id} | |
| GetAppProfileSchema | Get /api/v1/appprofile/schema | |
| ListAppProfile | Get /api/v1/appprofile | |
| UpdateAppProfile | Put /api/v1/appprofile/{id} |
AppProfileResource CreateAppProfile(ctx).AppProfileResource(appProfileResource).Execute()
package main
import (
"context"
"fmt"
"os"
prowlarrClient "github.com/devopsarr/prowlarr-go/prowlarr"
)
func main() {
appProfileResource := *prowlarrClient.NewAppProfileResource() // AppProfileResource | (optional)
configuration := prowlarrClient.NewConfiguration()
apiClient := prowlarrClient.NewAPIClient(configuration)
resp, r, err := apiClient.AppProfileAPI.CreateAppProfile(context.Background()).AppProfileResource(appProfileResource).Execute()
if err != nil {
fmt.Fprintf(os.Stderr, "Error when calling `AppProfileAPI.CreateAppProfile``: %v\n", err)
fmt.Fprintf(os.Stderr, "Full HTTP response: %v\n", r)
}
// response from `CreateAppProfile`: AppProfileResource
fmt.Fprintf(os.Stdout, "Response from `AppProfileAPI.CreateAppProfile`: %v\n", resp)
}Other parameters are passed through a pointer to a apiCreateAppProfileRequest struct via the builder pattern
| Name | Type | Description | Notes |
|---|---|---|---|
| appProfileResource | AppProfileResource |
- Content-Type: application/json
- Accept: application/json
[Back to top] [Back to API list] [Back to Model list] [Back to README]
DeleteAppProfile(ctx, id).Execute()
package main
import (
"context"
"fmt"
"os"
prowlarrClient "github.com/devopsarr/prowlarr-go/prowlarr"
)
func main() {
id := int32(56) // int32 |
configuration := prowlarrClient.NewConfiguration()
apiClient := prowlarrClient.NewAPIClient(configuration)
r, err := apiClient.AppProfileAPI.DeleteAppProfile(context.Background(), id).Execute()
if err != nil {
fmt.Fprintf(os.Stderr, "Error when calling `AppProfileAPI.DeleteAppProfile``: %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 apiDeleteAppProfileRequest 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]
AppProfileResource GetAppProfileById(ctx, id).Execute()
package main
import (
"context"
"fmt"
"os"
prowlarrClient "github.com/devopsarr/prowlarr-go/prowlarr"
)
func main() {
id := int32(56) // int32 |
configuration := prowlarrClient.NewConfiguration()
apiClient := prowlarrClient.NewAPIClient(configuration)
resp, r, err := apiClient.AppProfileAPI.GetAppProfileById(context.Background(), id).Execute()
if err != nil {
fmt.Fprintf(os.Stderr, "Error when calling `AppProfileAPI.GetAppProfileById``: %v\n", err)
fmt.Fprintf(os.Stderr, "Full HTTP response: %v\n", r)
}
// response from `GetAppProfileById`: AppProfileResource
fmt.Fprintf(os.Stdout, "Response from `AppProfileAPI.GetAppProfileById`: %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 apiGetAppProfileByIdRequest 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]
AppProfileResource GetAppProfileSchema(ctx).Execute()
package main
import (
"context"
"fmt"
"os"
prowlarrClient "github.com/devopsarr/prowlarr-go/prowlarr"
)
func main() {
configuration := prowlarrClient.NewConfiguration()
apiClient := prowlarrClient.NewAPIClient(configuration)
resp, r, err := apiClient.AppProfileAPI.GetAppProfileSchema(context.Background()).Execute()
if err != nil {
fmt.Fprintf(os.Stderr, "Error when calling `AppProfileAPI.GetAppProfileSchema``: %v\n", err)
fmt.Fprintf(os.Stderr, "Full HTTP response: %v\n", r)
}
// response from `GetAppProfileSchema`: AppProfileResource
fmt.Fprintf(os.Stdout, "Response from `AppProfileAPI.GetAppProfileSchema`: %v\n", resp)
}This endpoint does not need any parameter.
Other parameters are passed through a pointer to a apiGetAppProfileSchemaRequest struct via the builder pattern
- Content-Type: Not defined
- Accept: application/json
[Back to top] [Back to API list] [Back to Model list] [Back to README]
[]AppProfileResource ListAppProfile(ctx).Execute()
package main
import (
"context"
"fmt"
"os"
prowlarrClient "github.com/devopsarr/prowlarr-go/prowlarr"
)
func main() {
configuration := prowlarrClient.NewConfiguration()
apiClient := prowlarrClient.NewAPIClient(configuration)
resp, r, err := apiClient.AppProfileAPI.ListAppProfile(context.Background()).Execute()
if err != nil {
fmt.Fprintf(os.Stderr, "Error when calling `AppProfileAPI.ListAppProfile``: %v\n", err)
fmt.Fprintf(os.Stderr, "Full HTTP response: %v\n", r)
}
// response from `ListAppProfile`: []AppProfileResource
fmt.Fprintf(os.Stdout, "Response from `AppProfileAPI.ListAppProfile`: %v\n", resp)
}This endpoint does not need any parameter.
Other parameters are passed through a pointer to a apiListAppProfileRequest struct via the builder pattern
- Content-Type: Not defined
- Accept: application/json
[Back to top] [Back to API list] [Back to Model list] [Back to README]
AppProfileResource UpdateAppProfile(ctx, id).AppProfileResource(appProfileResource).Execute()
package main
import (
"context"
"fmt"
"os"
prowlarrClient "github.com/devopsarr/prowlarr-go/prowlarr"
)
func main() {
id := "id_example" // string |
appProfileResource := *prowlarrClient.NewAppProfileResource() // AppProfileResource | (optional)
configuration := prowlarrClient.NewConfiguration()
apiClient := prowlarrClient.NewAPIClient(configuration)
resp, r, err := apiClient.AppProfileAPI.UpdateAppProfile(context.Background(), id).AppProfileResource(appProfileResource).Execute()
if err != nil {
fmt.Fprintf(os.Stderr, "Error when calling `AppProfileAPI.UpdateAppProfile``: %v\n", err)
fmt.Fprintf(os.Stderr, "Full HTTP response: %v\n", r)
}
// response from `UpdateAppProfile`: AppProfileResource
fmt.Fprintf(os.Stdout, "Response from `AppProfileAPI.UpdateAppProfile`: %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 apiUpdateAppProfileRequest struct via the builder pattern
| Name | Type | Description | Notes |
|---|
appProfileResource | AppProfileResource | |
- Content-Type: application/json
- Accept: application/json
[Back to top] [Back to API list] [Back to Model list] [Back to README]