Skip to content

Latest commit

 

History

History
398 lines (251 loc) · 10 KB

AutoTaggingAPI.md

File metadata and controls

398 lines (251 loc) · 10 KB

\AutoTaggingAPI

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

Method HTTP request Description
CreateAutoTagging Post /api/v3/autotagging
DeleteAutoTagging Delete /api/v3/autotagging/{id}
GetAutoTaggingById Get /api/v3/autotagging/{id}
GetAutoTaggingSchema Get /api/v3/autotagging/schema
ListAutoTagging Get /api/v3/autotagging
UpdateAutoTagging Put /api/v3/autotagging/{id}

CreateAutoTagging

AutoTaggingResource CreateAutoTagging(ctx).AutoTaggingResource(autoTaggingResource).Execute()

Example

package main

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

func main() {
	autoTaggingResource := *whisparrClient.NewAutoTaggingResource() // AutoTaggingResource |  (optional)

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

Path Parameters

Other Parameters

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

Name Type Description Notes
autoTaggingResource AutoTaggingResource

Return type

AutoTaggingResource

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]

DeleteAutoTagging

DeleteAutoTagging(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)
	r, err := apiClient.AutoTaggingAPI.DeleteAutoTagging(context.Background(), id).Execute()
	if err != nil {
		fmt.Fprintf(os.Stderr, "Error when calling `AutoTaggingAPI.DeleteAutoTagging``: %v\n", err)
		fmt.Fprintf(os.Stderr, "Full HTTP response: %v\n", r)
	}
}

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 apiDeleteAutoTaggingRequest struct via the builder pattern

Name Type Description Notes

Return type

(empty response body)

Authorization

apikey, X-Api-Key

HTTP request headers

  • Content-Type: Not defined
  • Accept: Not defined

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

GetAutoTaggingById

AutoTaggingResource GetAutoTaggingById(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.AutoTaggingAPI.GetAutoTaggingById(context.Background(), id).Execute()
	if err != nil {
		fmt.Fprintf(os.Stderr, "Error when calling `AutoTaggingAPI.GetAutoTaggingById``: %v\n", err)
		fmt.Fprintf(os.Stderr, "Full HTTP response: %v\n", r)
	}
	// response from `GetAutoTaggingById`: AutoTaggingResource
	fmt.Fprintf(os.Stdout, "Response from `AutoTaggingAPI.GetAutoTaggingById`: %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 apiGetAutoTaggingByIdRequest struct via the builder pattern

Name Type Description Notes

Return type

AutoTaggingResource

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]

GetAutoTaggingSchema

GetAutoTaggingSchema(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)
	r, err := apiClient.AutoTaggingAPI.GetAutoTaggingSchema(context.Background()).Execute()
	if err != nil {
		fmt.Fprintf(os.Stderr, "Error when calling `AutoTaggingAPI.GetAutoTaggingSchema``: %v\n", err)
		fmt.Fprintf(os.Stderr, "Full HTTP response: %v\n", r)
	}
}

Path Parameters

This endpoint does not need any parameter.

Other Parameters

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

Return type

(empty response body)

Authorization

apikey, X-Api-Key

HTTP request headers

  • Content-Type: Not defined
  • Accept: Not defined

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

ListAutoTagging

[]AutoTaggingResource ListAutoTagging(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.AutoTaggingAPI.ListAutoTagging(context.Background()).Execute()
	if err != nil {
		fmt.Fprintf(os.Stderr, "Error when calling `AutoTaggingAPI.ListAutoTagging``: %v\n", err)
		fmt.Fprintf(os.Stderr, "Full HTTP response: %v\n", r)
	}
	// response from `ListAutoTagging`: []AutoTaggingResource
	fmt.Fprintf(os.Stdout, "Response from `AutoTaggingAPI.ListAutoTagging`: %v\n", resp)
}

Path Parameters

This endpoint does not need any parameter.

Other Parameters

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

Return type

[]AutoTaggingResource

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]

UpdateAutoTagging

AutoTaggingResource UpdateAutoTagging(ctx, id).AutoTaggingResource(autoTaggingResource).Execute()

Example

package main

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

func main() {
	id := "id_example" // string | 
	autoTaggingResource := *whisparrClient.NewAutoTaggingResource() // AutoTaggingResource |  (optional)

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

Path Parameters

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

Other Parameters

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

Name Type Description Notes

autoTaggingResource | AutoTaggingResource | |

Return type

AutoTaggingResource

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]