Skip to content

Commit

Permalink
feat: add sonarr auto tagging schema return type
Browse files Browse the repository at this point in the history
  • Loading branch information
devopsarr[bot] committed Aug 23, 2023
1 parent 85b78d8 commit 9fcbdf3
Show file tree
Hide file tree
Showing 4 changed files with 66 additions and 47 deletions.
2 changes: 1 addition & 1 deletion README.md
Original file line number Diff line number Diff line change
Expand Up @@ -88,8 +88,8 @@ Class | Method | HTTP request | Description
*AutoTaggingApi* | [**CreateAutoTagging**](sonarr/docs/AutoTaggingApi.md#createautotagging) | **Post** /api/v3/autotagging |
*AutoTaggingApi* | [**DeleteAutoTagging**](sonarr/docs/AutoTaggingApi.md#deleteautotagging) | **Delete** /api/v3/autotagging/{id} |
*AutoTaggingApi* | [**GetAutoTaggingById**](sonarr/docs/AutoTaggingApi.md#getautotaggingbyid) | **Get** /api/v3/autotagging/{id} |
*AutoTaggingApi* | [**GetAutoTaggingSchema**](sonarr/docs/AutoTaggingApi.md#getautotaggingschema) | **Get** /api/v3/autotagging/schema |
*AutoTaggingApi* | [**ListAutoTagging**](sonarr/docs/AutoTaggingApi.md#listautotagging) | **Get** /api/v3/autotagging |
*AutoTaggingApi* | [**ListAutoTaggingSchema**](sonarr/docs/AutoTaggingApi.md#listautotaggingschema) | **Get** /api/v3/autotagging/schema |
*AutoTaggingApi* | [**UpdateAutoTagging**](sonarr/docs/AutoTaggingApi.md#updateautotagging) | **Put** /api/v3/autotagging/{id} |
*BackupApi* | [**CreateSystemBackupRestoreById**](sonarr/docs/BackupApi.md#createsystembackuprestorebyid) | **Post** /api/v3/system/backup/restore/{id} |
*BackupApi* | [**CreateSystemBackupRestoreUpload**](sonarr/docs/BackupApi.md#createsystembackuprestoreupload) | **Post** /api/v3/system/backup/restore/upload |
Expand Down
8 changes: 7 additions & 1 deletion sonarr/api/openapi.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -177,9 +177,15 @@ paths:
- AutoTagging
/api/v3/autotagging/schema:
get:
operationId: GetAutoTaggingSchema
operationId: ListAutoTaggingSchema
responses:
"200":
content:
application/json:
schema:
items:
$ref: '#/components/schemas/AutoTaggingSpecificationSchema'
type: array
description: Success
tags:
- AutoTagging
Expand Down
69 changes: 40 additions & 29 deletions sonarr/api_auto_tagging.go

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

34 changes: 18 additions & 16 deletions sonarr/docs/AutoTaggingApi.md
Original file line number Diff line number Diff line change
Expand Up @@ -7,8 +7,8 @@ Method | HTTP request | Description
[**CreateAutoTagging**](AutoTaggingApi.md#CreateAutoTagging) | **Post** /api/v3/autotagging |
[**DeleteAutoTagging**](AutoTaggingApi.md#DeleteAutoTagging) | **Delete** /api/v3/autotagging/{id} |
[**GetAutoTaggingById**](AutoTaggingApi.md#GetAutoTaggingById) | **Get** /api/v3/autotagging/{id} |
[**GetAutoTaggingSchema**](AutoTaggingApi.md#GetAutoTaggingSchema) | **Get** /api/v3/autotagging/schema |
[**ListAutoTagging**](AutoTaggingApi.md#ListAutoTagging) | **Get** /api/v3/autotagging |
[**ListAutoTaggingSchema**](AutoTaggingApi.md#ListAutoTaggingSchema) | **Get** /api/v3/autotagging/schema |
[**UpdateAutoTagging**](AutoTaggingApi.md#UpdateAutoTagging) | **Put** /api/v3/autotagging/{id} |


Expand Down Expand Up @@ -211,9 +211,9 @@ Name | Type | Description | Notes
[[Back to README]](../README.md)


## GetAutoTaggingSchema
## ListAutoTagging

> GetAutoTaggingSchema(ctx).Execute()
> []AutoTaggingResource ListAutoTagging(ctx).Execute()


Expand All @@ -233,11 +233,13 @@ func main() {

configuration := sonarrClient.NewConfiguration()
apiClient := sonarrClient.NewAPIClient(configuration)
resp, r, err := apiClient.AutoTaggingApi.GetAutoTaggingSchema(context.Background()).Execute()
resp, r, err := apiClient.AutoTaggingApi.ListAutoTagging(context.Background()).Execute()
if err != nil {
fmt.Fprintf(os.Stderr, "Error when calling `AutoTaggingApi.GetAutoTaggingSchema``: %v\n", err)
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)
}
```

Expand All @@ -247,12 +249,12 @@ This endpoint does not need any parameter.

### Other Parameters

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


### Return type

(empty response body)
[**[]AutoTaggingResource**](AutoTaggingResource.md)

### Authorization

Expand All @@ -261,16 +263,16 @@ Other parameters are passed through a pointer to a apiGetAutoTaggingSchemaReques
### HTTP request headers

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

[[Back to top]](#) [[Back to API list]](../README.md#documentation-for-api-endpoints)
[[Back to Model list]](../README.md#documentation-for-models)
[[Back to README]](../README.md)


## ListAutoTagging
## ListAutoTaggingSchema

> []AutoTaggingResource ListAutoTagging(ctx).Execute()
> []AutoTaggingSpecificationSchema ListAutoTaggingSchema(ctx).Execute()


Expand All @@ -290,13 +292,13 @@ func main() {

configuration := sonarrClient.NewConfiguration()
apiClient := sonarrClient.NewAPIClient(configuration)
resp, r, err := apiClient.AutoTaggingApi.ListAutoTagging(context.Background()).Execute()
resp, r, err := apiClient.AutoTaggingApi.ListAutoTaggingSchema(context.Background()).Execute()
if err != nil {
fmt.Fprintf(os.Stderr, "Error when calling `AutoTaggingApi.ListAutoTagging``: %v\n", err)
fmt.Fprintf(os.Stderr, "Error when calling `AutoTaggingApi.ListAutoTaggingSchema``: %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)
// response from `ListAutoTaggingSchema`: []AutoTaggingSpecificationSchema
fmt.Fprintf(os.Stdout, "Response from `AutoTaggingApi.ListAutoTaggingSchema`: %v\n", resp)
}
```

Expand All @@ -306,12 +308,12 @@ This endpoint does not need any parameter.

### Other Parameters

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


### Return type

[**[]AutoTaggingResource**](AutoTaggingResource.md)
[**[]AutoTaggingSpecificationSchema**](AutoTaggingSpecificationSchema.md)

### Authorization

Expand Down

0 comments on commit 9fcbdf3

Please sign in to comment.