Skip to content

Commit 56e57ce

Browse files
committed
refactor: change /settings/radarr/test endpoint to use named schemas RadarrTestRequest and RadarrTestResponse
1 parent 0d5a25b commit 56e57ce

File tree

1 file changed

+31
-27
lines changed

1 file changed

+31
-27
lines changed

seerr-api.yml

Lines changed: 31 additions & 27 deletions
Original file line numberDiff line numberDiff line change
@@ -680,6 +680,35 @@ components:
680680
- is4k
681681
- minimumAvailability
682682
- isDefault
683+
RadarrTestRequest:
684+
type: object
685+
properties:
686+
hostname:
687+
type: string
688+
example: '127.0.0.1'
689+
port:
690+
type: integer
691+
example: 7878
692+
apiKey:
693+
type: string
694+
example: yourapikey
695+
useSsl:
696+
type: boolean
697+
example: false
698+
baseUrl:
699+
type: string
700+
required:
701+
- hostname
702+
- port
703+
- apiKey
704+
- useSsl
705+
RadarrTestResponse:
706+
type: object
707+
properties:
708+
profiles:
709+
type: array
710+
items:
711+
$ref: '#/components/schemas/ServiceProfile'
683712
SonarrSettings:
684713
type: object
685714
properties:
@@ -2669,39 +2698,14 @@ paths:
26692698
content:
26702699
application/json:
26712700
schema:
2672-
type: object
2673-
properties:
2674-
hostname:
2675-
type: string
2676-
example: '127.0.0.1'
2677-
port:
2678-
type: integer
2679-
example: 7878
2680-
apiKey:
2681-
type: string
2682-
example: yourapikey
2683-
useSsl:
2684-
type: boolean
2685-
example: false
2686-
baseUrl:
2687-
type: string
2688-
required:
2689-
- hostname
2690-
- port
2691-
- apiKey
2692-
- useSsl
2701+
$ref: '#/components/schemas/RadarrTestRequest'
26932702
responses:
26942703
'200':
26952704
description: Succesfully connected to Radarr instance
26962705
content:
26972706
application/json:
26982707
schema:
2699-
type: object
2700-
properties:
2701-
profiles:
2702-
type: array
2703-
items:
2704-
$ref: '#/components/schemas/ServiceProfile'
2708+
$ref: '#/components/schemas/RadarrTestResponse'
27052709
/settings/radarr/{radarrId}:
27062710
put:
27072711
summary: Update Radarr instance

0 commit comments

Comments
 (0)