Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
22 changes: 21 additions & 1 deletion spec3.json
Original file line number Diff line number Diff line change
Expand Up @@ -4167,7 +4167,27 @@
"$ref": "#/components/schemas/Pagination"
},
{
"$ref": "#/components/schemas/Sorting"
"type": "object",
"properties": {
"sort": {
"type": "string",
"description": "The field to sort by. Note that sorting is by a column of the view record, not the document itself.",
"default": "updatedAt",
"enum": [
"updatedAt",
"createdAt"
]
},
"direction": {
"type": "string",
"example": "DESC",
"default": "DESC",
"enum": [
"ASC",
"DESC"
]
}
}
}
]
}
Expand Down
18 changes: 17 additions & 1 deletion spec3.yml
Original file line number Diff line number Diff line change
Expand Up @@ -3013,7 +3013,23 @@ paths:
schema:
allOf:
- "$ref": "#/components/schemas/Pagination"
- "$ref": "#/components/schemas/Sorting"
- type: object
properties:
sort:
type: string
description: The field to sort by. Note that sorting is by a
column of the view record, not the document itself.
default: updatedAt
enum:
- updatedAt
- createdAt
direction:
type: string
example: DESC
default: DESC
enum:
- ASC
- DESC
responses:
"200":
description: OK
Expand Down
Loading