All URIs are relative to http://localhost:7878
Method | HTTP request | Description |
---|---|---|
Get | Get / | |
GetByPath | Get /{path} | |
GetContentByPath | Get /content/{path} | |
GetLogin | Get /login |
Get(ctx, path).Execute()
package main
import (
"context"
"fmt"
"os"
whisparrClient "github.com/devopsarr/whisparr-go/whisparr"
)
func main() {
path := "path_example" // string |
configuration := whisparrClient.NewConfiguration()
apiClient := whisparrClient.NewAPIClient(configuration)
r, err := apiClient.StaticResourceAPI.Get(context.Background(), path).Execute()
if err != nil {
fmt.Fprintf(os.Stderr, "Error when calling `StaticResourceAPI.Get``: %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. | |
path | string |
Other parameters are passed through a pointer to a apiGetRequest 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]
GetByPath(ctx, path).Execute()
package main
import (
"context"
"fmt"
"os"
whisparrClient "github.com/devopsarr/whisparr-go/whisparr"
)
func main() {
path := "path_example" // string |
configuration := whisparrClient.NewConfiguration()
apiClient := whisparrClient.NewAPIClient(configuration)
r, err := apiClient.StaticResourceAPI.GetByPath(context.Background(), path).Execute()
if err != nil {
fmt.Fprintf(os.Stderr, "Error when calling `StaticResourceAPI.GetByPath``: %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. | |
path | string |
Other parameters are passed through a pointer to a apiGetByPathRequest 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]
GetContentByPath(ctx, path).Execute()
package main
import (
"context"
"fmt"
"os"
whisparrClient "github.com/devopsarr/whisparr-go/whisparr"
)
func main() {
path := "path_example" // string |
configuration := whisparrClient.NewConfiguration()
apiClient := whisparrClient.NewAPIClient(configuration)
r, err := apiClient.StaticResourceAPI.GetContentByPath(context.Background(), path).Execute()
if err != nil {
fmt.Fprintf(os.Stderr, "Error when calling `StaticResourceAPI.GetContentByPath``: %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. | |
path | string |
Other parameters are passed through a pointer to a apiGetContentByPathRequest 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]
GetLogin(ctx).Execute()
package main
import (
"context"
"fmt"
"os"
whisparrClient "github.com/devopsarr/whisparr-go/whisparr"
)
func main() {
configuration := whisparrClient.NewConfiguration()
apiClient := whisparrClient.NewAPIClient(configuration)
r, err := apiClient.StaticResourceAPI.GetLogin(context.Background()).Execute()
if err != nil {
fmt.Fprintf(os.Stderr, "Error when calling `StaticResourceAPI.GetLogin``: %v\n", err)
fmt.Fprintf(os.Stderr, "Full HTTP response: %v\n", r)
}
}
This endpoint does not need any parameter.
Other parameters are passed through a pointer to a apiGetLoginRequest struct via the builder pattern
(empty response body)
- Content-Type: Not defined
- Accept: Not defined
[Back to top] [Back to API list] [Back to Model list] [Back to README]