All URIs are relative to http://localhost:8787
| Method | HTTP request | Description |
|---|---|---|
| GetPing | Get /ping | |
| HeadPing | Head /ping |
PingResource GetPing(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.PingAPI.GetPing(context.Background()).Execute()
if err != nil {
fmt.Fprintf(os.Stderr, "Error when calling `PingAPI.GetPing``: %v\n", err)
fmt.Fprintf(os.Stderr, "Full HTTP response: %v\n", r)
}
// response from `GetPing`: PingResource
fmt.Fprintf(os.Stdout, "Response from `PingAPI.GetPing`: %v\n", resp)
}This endpoint does not need any parameter.
Other parameters are passed through a pointer to a apiGetPingRequest 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]
PingResource HeadPing(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.PingAPI.HeadPing(context.Background()).Execute()
if err != nil {
fmt.Fprintf(os.Stderr, "Error when calling `PingAPI.HeadPing``: %v\n", err)
fmt.Fprintf(os.Stderr, "Full HTTP response: %v\n", r)
}
// response from `HeadPing`: PingResource
fmt.Fprintf(os.Stdout, "Response from `PingAPI.HeadPing`: %v\n", resp)
}This endpoint does not need any parameter.
Other parameters are passed through a pointer to a apiHeadPingRequest 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]