Skip to content

Commit bc2b65b

Browse files
committed
Add listServiceInstancesForSite spec
1 parent 5c4e59c commit bc2b65b

File tree

1 file changed

+21
-3
lines changed

1 file changed

+21
-3
lines changed

swagger.yml

Lines changed: 21 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -1446,6 +1446,24 @@ paths:
14461446
$ref: '#/responses/error'
14471447
# end submission
14481448
# begin service instances (addon instance)
1449+
/sites/{site_id}/service-instances:
1450+
parameters:
1451+
- name: site_id
1452+
type: string
1453+
in: path
1454+
required: true
1455+
get:
1456+
operationId: listServiceInstancesForSite
1457+
tags: [serviceInstance]
1458+
responses:
1459+
'200':
1460+
description: OK
1461+
schema:
1462+
type: array
1463+
items:
1464+
$ref: '#/definitions/serviceInstance'
1465+
default:
1466+
$ref: '#/responses/error'
14491467
/sites/{site_id}/services/{addon}/instances:
14501468
parameters:
14511469
- name: site_id
@@ -1492,8 +1510,8 @@ paths:
14921510
operationId: showServiceInstance
14931511
tags: [serviceInstance]
14941512
responses:
1495-
'201':
1496-
description: Created
1513+
'200':
1514+
description: OK
14971515
schema:
14981516
$ref: '#/definitions/serviceInstance'
14991517
default:
@@ -1511,7 +1529,7 @@ paths:
15111529
type: object
15121530
responses:
15131531
'204':
1514-
description: Created
1532+
description: No Content
15151533
default:
15161534
$ref: '#/responses/error'
15171535
delete:

0 commit comments

Comments
 (0)