Skip to content

Commit

Permalink
docs: update requirement for /raw-text endpoint
Browse files Browse the repository at this point in the history
resolves #1893
  • Loading branch information
timothycarambat committed Jul 22, 2024
1 parent fc27685 commit 7b42a67
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 20 deletions.
1 change: 1 addition & 0 deletions server/endpoints/api/document/index.js
Original file line number Diff line number Diff line change
Expand Up @@ -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"
Expand Down
21 changes: 1 addition & 20 deletions server/swagger/openapi.json
Original file line number Diff line number Diff line change
Expand Up @@ -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": {
Expand Down

0 comments on commit 7b42a67

Please sign in to comment.