Skip to content

Commit be99398

Browse files
Restore relation collection endpoint (#18)
1 parent 9fcb0f0 commit be99398

File tree

2 files changed

+12
-3
lines changed

2 files changed

+12
-3
lines changed

openapi/index.yaml

+2
Original file line numberDiff line numberDiff line change
@@ -131,6 +131,8 @@ paths:
131131
$ref: paths/presets/_id/index.yaml
132132
"/relations":
133133
$ref: paths/relations/index.yaml
134+
"/relations‎/{collection}":
135+
$ref: paths/relations/_collection/index.yaml
134136
"/relations/{id}":
135137
$ref: paths/relations/_id/index.yaml
136138
"/revisions":

openapi/paths/relations/_collection/getRelationByCollection.yaml

+10-3
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,13 @@
11
summary: List relations in collection
22
description: List all relations that exist in a given collection.
33
operationId: getRelationByCollection
4+
parameters:
5+
- description: Unique identifier of the collection the relations reside in.
6+
in: path
7+
name: collection
8+
required: true
9+
schema:
10+
type: string
411
responses:
512
'200':
613
description: Successful request
@@ -12,11 +19,11 @@ responses:
1219
data:
1320
type: array
1421
items:
15-
$ref: ../../components/schemas/Relations.yaml
22+
$ref: ../../../components/schemas/Relations.yaml
1623
'401':
17-
$ref: ../../components/responses.yaml#/UnauthorizedError
24+
$ref: ../../../components/responses.yaml#/UnauthorizedError
1825
'404':
19-
$ref: ../../components/responses.yaml#/NotFoundError
26+
$ref: ../../../components/responses.yaml#/NotFoundError
2027
security: []
2128
tags:
2229
- Relations

0 commit comments

Comments
 (0)