Skip to content

Commit 2085a18

Browse files
committed
refactor: change /settings/radarr/test and /settings/sonarr/test endpoints to use consolidated schemas ServarrTestRequest and ServarrTestResponse
1 parent 56e57ce commit 2085a18

File tree

1 file changed

+6
-31
lines changed

1 file changed

+6
-31
lines changed

seerr-api.yml

Lines changed: 6 additions & 31 deletions
Original file line numberDiff line numberDiff line change
@@ -680,7 +680,7 @@ components:
680680
- is4k
681681
- minimumAvailability
682682
- isDefault
683-
RadarrTestRequest:
683+
ServarrTestRequest:
684684
type: object
685685
properties:
686686
hostname:
@@ -702,7 +702,7 @@ components:
702702
- port
703703
- apiKey
704704
- useSsl
705-
RadarrTestResponse:
705+
ServarrTestResponse:
706706
type: object
707707
properties:
708708
profiles:
@@ -2698,14 +2698,14 @@ paths:
26982698
content:
26992699
application/json:
27002700
schema:
2701-
$ref: '#/components/schemas/RadarrTestRequest'
2701+
$ref: '#/components/schemas/ServarrTestRequest'
27022702
responses:
27032703
'200':
27042704
description: Succesfully connected to Radarr instance
27052705
content:
27062706
application/json:
27072707
schema:
2708-
$ref: '#/components/schemas/RadarrTestResponse'
2708+
$ref: '#/components/schemas/ServarrTestResponse'
27092709
/settings/radarr/{radarrId}:
27102710
put:
27112711
summary: Update Radarr instance
@@ -2817,39 +2817,14 @@ paths:
28172817
content:
28182818
application/json:
28192819
schema:
2820-
type: object
2821-
properties:
2822-
hostname:
2823-
type: string
2824-
example: '127.0.0.1'
2825-
port:
2826-
type: integer
2827-
example: 8989
2828-
apiKey:
2829-
type: string
2830-
example: yourapikey
2831-
useSsl:
2832-
type: boolean
2833-
example: false
2834-
baseUrl:
2835-
type: string
2836-
required:
2837-
- hostname
2838-
- port
2839-
- apiKey
2840-
- useSsl
2820+
$ref: '#/components/schemas/ServarrTestRequest'
28412821
responses:
28422822
'200':
28432823
description: Succesfully connected to Sonarr instance
28442824
content:
28452825
application/json:
28462826
schema:
2847-
type: object
2848-
properties:
2849-
profiles:
2850-
type: array
2851-
items:
2852-
$ref: '#/components/schemas/ServiceProfile'
2827+
$ref: '#/components/schemas/ServarrTestResponse'
28532828
/settings/sonarr/{sonarrId}:
28542829
put:
28552830
summary: Update Sonarr instance

0 commit comments

Comments
 (0)