Skip to content

Latest commit

 

History

History
134 lines (82 loc) · 3.25 KB

BookEditorAPI.md

File metadata and controls

134 lines (82 loc) · 3.25 KB

\BookEditorAPI

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

Method HTTP request Description
DeleteBookEditor Delete /api/v1/book/editor
PutBookEditor Put /api/v1/book/editor

DeleteBookEditor

DeleteBookEditor(ctx).BookEditorResource(bookEditorResource).Execute()

Example

package main

import (
	"context"
	"fmt"
	"os"
	readarrClient "github.com/devopsarr/readarr-go/readarr"
)

func main() {
	bookEditorResource := *readarrClient.NewBookEditorResource() // BookEditorResource |  (optional)

	configuration := readarrClient.NewConfiguration()
	apiClient := readarrClient.NewAPIClient(configuration)
	r, err := apiClient.BookEditorAPI.DeleteBookEditor(context.Background()).BookEditorResource(bookEditorResource).Execute()
	if err != nil {
		fmt.Fprintf(os.Stderr, "Error when calling `BookEditorAPI.DeleteBookEditor``: %v\n", err)
		fmt.Fprintf(os.Stderr, "Full HTTP response: %v\n", r)
	}
}

Path Parameters

Other Parameters

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

Name Type Description Notes
bookEditorResource BookEditorResource

Return type

(empty response body)

Authorization

apikey, X-Api-Key

HTTP request headers

  • Content-Type: application/json, text/json, application/*+json
  • Accept: Not defined

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

PutBookEditor

PutBookEditor(ctx).BookEditorResource(bookEditorResource).Execute()

Example

package main

import (
	"context"
	"fmt"
	"os"
	readarrClient "github.com/devopsarr/readarr-go/readarr"
)

func main() {
	bookEditorResource := *readarrClient.NewBookEditorResource() // BookEditorResource |  (optional)

	configuration := readarrClient.NewConfiguration()
	apiClient := readarrClient.NewAPIClient(configuration)
	r, err := apiClient.BookEditorAPI.PutBookEditor(context.Background()).BookEditorResource(bookEditorResource).Execute()
	if err != nil {
		fmt.Fprintf(os.Stderr, "Error when calling `BookEditorAPI.PutBookEditor``: %v\n", err)
		fmt.Fprintf(os.Stderr, "Full HTTP response: %v\n", r)
	}
}

Path Parameters

Other Parameters

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

Name Type Description Notes
bookEditorResource BookEditorResource

Return type

(empty response body)

Authorization

apikey, X-Api-Key

HTTP request headers

  • Content-Type: application/json, text/json, application/*+json
  • Accept: Not defined

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