diff options
| author | xuatz <xzlow10@gmail.com> | 2025-05-19 00:18:58 +0900 |
|---|---|---|
| committer | GitHub <noreply@github.com> | 2025-05-18 16:18:58 +0100 |
| commit | 4e06ea7bdbaaa196da5c3e2a755aeefb25cf4228 (patch) | |
| tree | 1f9aab52078eaa485430cfc6e514c655da122ea5 /packages/open-api/karakeep-openapi-spec.json | |
| parent | 70d572096706cb2d7f5d3f29b51e6ba1d86578c6 (diff) | |
| download | karakeep-4e06ea7bdbaaa196da5c3e2a755aeefb25cf4228.tar.zst | |
feat(api): enable ?sortOrder= for relevant resources (#1398)
* feat(api): enable `?sortOrder=` for relevant resources
* fix tests
Diffstat (limited to 'packages/open-api/karakeep-openapi-spec.json')
| -rw-r--r-- | packages/open-api/karakeep-openapi-spec.json | 61 |
1 files changed, 57 insertions, 4 deletions
diff --git a/packages/open-api/karakeep-openapi-spec.json b/packages/open-api/karakeep-openapi-spec.json index 3bdaed54..dbc2e5d0 100644 --- a/packages/open-api/karakeep-openapi-spec.json +++ b/packages/open-api/karakeep-openapi-spec.json @@ -551,6 +551,19 @@ }, { "schema": { + "type": "string", + "enum": [ + "asc", + "desc" + ], + "default": "desc" + }, + "required": false, + "name": "sortOrder", + "in": "query" + }, + { + "schema": { "type": "number" }, "required": false, @@ -776,6 +789,20 @@ }, { "schema": { + "type": "string", + "enum": [ + "asc", + "desc", + "relevance" + ], + "default": "relevance" + }, + "required": false, + "name": "sortOrder", + "in": "query" + }, + { + "schema": { "type": "number" }, "required": false, @@ -1969,8 +1996,8 @@ }, "/lists/{listId}/bookmarks": { "get": { - "description": "Get the bookmarks in a list", - "summary": "Get a bookmarks in a list", + "description": "Get bookmarks in the list", + "summary": "Get bookmarks in the list", "tags": [ "Lists" ], @@ -1985,6 +2012,19 @@ }, { "schema": { + "type": "string", + "enum": [ + "asc", + "desc" + ], + "default": "desc" + }, + "required": false, + "name": "sortOrder", + "in": "query" + }, + { + "schema": { "type": "number" }, "required": false, @@ -2367,8 +2407,8 @@ }, "/tags/{tagId}/bookmarks": { "get": { - "description": "Get the bookmarks with the tag", - "summary": "Get a bookmarks with the tag", + "description": "Get bookmarks with the tag", + "summary": "Get bookmarks with the tag", "tags": [ "Tags" ], @@ -2383,6 +2423,19 @@ }, { "schema": { + "type": "string", + "enum": [ + "asc", + "desc" + ], + "default": "desc" + }, + "required": false, + "name": "sortOrder", + "in": "query" + }, + { + "schema": { "type": "number" }, "required": false, |
