From 7b42a67acf9df03cc9ff780beaf43ef4d5bf2e67 Mon Sep 17 00:00:00 2001 From: timothycarambat <rambat1010@gmail.com> Date: Mon, 22 Jul 2024 13:19:57 -0700 Subject: [PATCH] docs: update requirement for /raw-text endpoint resolves #1893 --- server/endpoints/api/document/index.js | 1 + server/swagger/openapi.json | 21 +-------------------- 2 files changed, 2 insertions(+), 20 deletions(-) diff --git a/server/endpoints/api/document/index.js b/server/endpoints/api/document/index.js index b6f312adc..7c682d402 100644 --- a/server/endpoints/api/document/index.js +++ b/server/endpoints/api/document/index.js @@ -237,6 +237,7 @@ function apiDocumentEndpoints(app) { example: { "textContent": "This is the raw text that will be saved as a document in AnythingLLM.", "metadata": { + "title": "This key is required. See in /server/endpoints/api/document/index.js:287" keyOne: "valueOne", keyTwo: "valueTwo", etc: "etc" diff --git a/server/swagger/openapi.json b/server/swagger/openapi.json index 8d9a9edda..37f363a2b 100644 --- a/server/swagger/openapi.json +++ b/server/swagger/openapi.json @@ -1012,26 +1012,7 @@ "description": "Internal Server Error" } }, - "requestBody": { - "description": "Text content and metadata of the file to be saved to the system. Use metadata-schema endpoint to get the possible metadata keys", - "required": true, - "type": "object", - "content": { - "application/json": { - "schema": { - "type": "object", - "example": { - "textContent": "This is the raw text that will be saved as a document in AnythingLLM.", - "metadata": { - "keyOne": "valueOne", - "keyTwo": "valueTwo", - "etc": "etc" - } - } - } - } - } - } + "requestBody": {} } }, "/v1/documents": {