Skip to content

Commit 3cf631c

Browse files
authored
Merge pull request #97 from alnr/master
feat: add getCollectionsParameters and missing metadata fields to CollectionSchema and CollectionUpdateSchema
2 parents 48b748d + 239e4cb commit 3cf631c

File tree

1 file changed

+25
-0
lines changed

1 file changed

+25
-0
lines changed

openapi.yml

Lines changed: 25 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -99,6 +99,23 @@ paths:
9999
returned sorted by creation date, with the most recent collections appearing
100100
first.
101101
operationId: getCollections
102+
parameters:
103+
- name: getCollectionsParameters
104+
in: query
105+
schema:
106+
type: object
107+
properties:
108+
exclude_fields:
109+
description: Comma-separated list of fields from the collection to exclude from the response
110+
type: string
111+
limit:
112+
description: >
113+
Number of collections to fetch.
114+
Default: returns all collections.
115+
type: integer
116+
offset:
117+
description: Identifies the starting point to return collections when paginating.
118+
type: integer
102119
responses:
103120
'200':
104121
description: List of all collections
@@ -2082,6 +2099,10 @@ components:
20822099
default: []
20832100
voice_query_model:
20842101
$ref: "#/components/schemas/VoiceQueryModelCollectionConfig"
2102+
metadata:
2103+
type: object
2104+
description: >
2105+
Optional details about the collection, e.g., when it was created, who created it etc.
20852106
CollectionUpdateSchema:
20862107
required:
20872108
- fields
@@ -2102,6 +2123,10 @@ components:
21022123
facet: true
21032124
items:
21042125
$ref: "#/components/schemas/Field"
2126+
metadata:
2127+
type: object
2128+
description: >
2129+
Optional details about the collection, e.g., when it was created, who created it etc.
21052130
CollectionResponse:
21062131
allOf:
21072132
- $ref: "#/components/schemas/CollectionSchema"

0 commit comments

Comments
 (0)