Skip to content

Latest commit

 

History

History
68 lines (42 loc) · 1.44 KB

ApiInfoAPI.md

File metadata and controls

68 lines (42 loc) · 1.44 KB

\ApiInfoAPI

All URIs are relative to http://localhost:7878

Method HTTP request Description
GetApi Get /api

GetApi

ApiInfoResource GetApi(ctx).Execute()

Example

package main

import (
	"context"
	"fmt"
	"os"
	whisparrClient "github.com/devopsarr/whisparr-go/whisparr"
)

func main() {

	configuration := whisparrClient.NewConfiguration()
	apiClient := whisparrClient.NewAPIClient(configuration)
	resp, r, err := apiClient.ApiInfoAPI.GetApi(context.Background()).Execute()
	if err != nil {
		fmt.Fprintf(os.Stderr, "Error when calling `ApiInfoAPI.GetApi``: %v\n", err)
		fmt.Fprintf(os.Stderr, "Full HTTP response: %v\n", r)
	}
	// response from `GetApi`: ApiInfoResource
	fmt.Fprintf(os.Stdout, "Response from `ApiInfoAPI.GetApi`: %v\n", resp)
}

Path Parameters

This endpoint does not need any parameter.

Other Parameters

Other parameters are passed through a pointer to a apiGetApiRequest struct via the builder pattern

Return type

ApiInfoResource

Authorization

apikey, X-Api-Key

HTTP request headers

  • Content-Type: Not defined
  • Accept: application/json

[Back to top] [Back to API list] [Back to Model list] [Back to README]