Skip to content

Latest commit

 

History

History
71 lines (43 loc) · 1.69 KB

File metadata and controls

71 lines (43 loc) · 1.69 KB

\BookshelfAPI

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

Method HTTP request Description
CreateBookshelf Post /api/v1/bookshelf

CreateBookshelf

CreateBookshelf(ctx).BookshelfResource(bookshelfResource).Execute()

Example

package main

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

func main() {
	bookshelfResource := *readarrClient.NewBookshelfResource() // BookshelfResource |  (optional)

	configuration := readarrClient.NewConfiguration()
	apiClient := readarrClient.NewAPIClient(configuration)
	r, err := apiClient.BookshelfAPI.CreateBookshelf(context.Background()).BookshelfResource(bookshelfResource).Execute()
	if err != nil {
		fmt.Fprintf(os.Stderr, "Error when calling `BookshelfAPI.CreateBookshelf``: %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 apiCreateBookshelfRequest struct via the builder pattern

Name Type Description Notes
bookshelfResource BookshelfResource

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]