Skip to content

Latest commit

 

History

History
142 lines (89 loc) · 3.65 KB

File metadata and controls

142 lines (89 loc) · 3.65 KB

\ReleasePushAPI

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

Method HTTP request Description
CreateReleasePush Post /api/v3/release/push
GetReleasePushById Get /api/v3/release/push/{id}

CreateReleasePush

[]ReleaseResource CreateReleasePush(ctx).ReleaseResource(releaseResource).Execute()

Example

package main

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

func main() {
	releaseResource := *whisparrClient.NewReleaseResource() // ReleaseResource |  (optional)

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

Path Parameters

Other Parameters

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

Name Type Description Notes
releaseResource ReleaseResource

Return type

[]ReleaseResource

Authorization

apikey, X-Api-Key

HTTP request headers

  • 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]

GetReleasePushById

ReleaseResource GetReleasePushById(ctx, id).Execute()

Example

package main

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

func main() {
	id := int32(56) // int32 | 

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

Path Parameters

Name Type Description Notes
ctx context.Context context for authentication, logging, cancellation, deadlines, tracing, etc.
id int32

Other Parameters

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

Name Type Description Notes

Return type

ReleaseResource

Authorization

apikey, X-Api-Key

HTTP request headers

  • 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]