diff options
| author | Mohamed Bassem <me@mbassem.com> | 2025-05-18 19:12:27 +0000 |
|---|---|---|
| committer | Mohamed Bassem <me@mbassem.com> | 2025-05-18 19:12:27 +0000 |
| commit | a5ae67c241d8cdd452acd4d98800ec61740c041f (patch) | |
| tree | f04929b1b27000564d108f25918c6e70fe651fb6 /packages/open-api/karakeep-openapi-spec.json | |
| parent | 053d1a905ed6cef71151d168351f22b35ddca986 (diff) | |
| download | karakeep-a5ae67c241d8cdd452acd4d98800ec61740c041f.tar.zst | |
feat(api): Expose the endpoint to create a new tag
Diffstat (limited to 'packages/open-api/karakeep-openapi-spec.json')
| -rw-r--r-- | packages/open-api/karakeep-openapi-spec.json | 69 |
1 files changed, 68 insertions, 1 deletions
diff --git a/packages/open-api/karakeep-openapi-spec.json b/packages/open-api/karakeep-openapi-spec.json index dbc2e5d0..15fa246b 100644 --- a/packages/open-api/karakeep-openapi-spec.json +++ b/packages/open-api/karakeep-openapi-spec.json @@ -2240,6 +2240,61 @@ } } } + }, + "post": { + "description": "Create a new tag", + "summary": "Create a new tag", + "tags": [ + "Tags" + ], + "security": [ + { + "bearerAuth": [] + } + ], + "requestBody": { + "description": "The data to create the tag with.", + "content": { + "application/json": { + "schema": { + "type": "object", + "properties": { + "name": { + "type": "string", + "minLength": 1 + } + }, + "required": [ + "name" + ] + } + } + } + }, + "responses": { + "201": { + "description": "The created tag", + "content": { + "application/json": { + "schema": { + "type": "object", + "properties": { + "id": { + "type": "string" + }, + "name": { + "type": "string" + } + }, + "required": [ + "id", + "name" + ] + } + } + } + } + } } }, "/tags/{tagId}": { @@ -2375,7 +2430,19 @@ "content": { "application/json": { "schema": { - "$ref": "#/components/schemas/Tag" + "type": "object", + "properties": { + "id": { + "type": "string" + }, + "name": { + "type": "string" + } + }, + "required": [ + "id", + "name" + ] } } } |
