[PR #608] [MERGED] 570 document api return object #3418

Closed
opened 2026-02-22 18:33:44 -05:00 by yindo · 0 comments
Owner

📋 Pull Request Information

Original PR: https://github.com/Mintplex-Labs/anything-llm/pull/608
Author: @timothycarambat
Created: 1/16/2024
Status: Merged
Merged: 1/16/2024
Merged by: @timothycarambat

Base: masterHead: 570-document-api-return-object


📝 Commits (5)

  • 9fd0434 Add support for fetching single document in documents folder
  • fbc9b71 Add document object to upload + support link scraping via API
  • 5a3c809 merge with master
  • 1c7addf hotfixes for documentation
  • c4c9a4d update api docs

📊 Changes

14 files changed (+324 additions, -43 deletions)

View changed files

📝 collector/index.js (+12 -4)
📝 collector/processLink/convert/generic.js (+10 -3)
📝 collector/processSingleFile/convert/asAudio.js (+11 -3)
📝 collector/processSingleFile/convert/asDocx.js (+10 -3)
📝 collector/processSingleFile/convert/asMbox.js (+12 -3)
📝 collector/processSingleFile/convert/asOfficeMime.js (+10 -3)
📝 collector/processSingleFile/convert/asPDF.js (+10 -3)
📝 collector/processSingleFile/convert/asTxt.js (+10 -3)
📝 collector/processSingleFile/index.js (+4 -0)
📝 collector/utils/files/index.js (+12 -7)
📝 server/endpoints/api/document/index.js (+117 -4)
📝 server/endpoints/api/workspace/index.js (+2 -2)
📝 server/swagger/openapi.json (+102 -3)
📝 server/utils/files/documentProcessor.js (+2 -2)

📄 Description

Pull Request Type

  • feat
  • 🐛 fix
  • ♻️ refactor
  • 💄 style
  • 🔨 chore
  • 📝 docs

Relevant Issues

resolves #570

What is in this change?

Return documents in response of API /document/upload for all supported filetypes
Support scraping of URLs via API

Developer Validations

  • I ran yarn lint from the root of the repo & committed changes
  • Relevant documentation has been updated
  • I have tested my code functionality
  • Docker build succeeds locally

🔄 This issue represents a GitHub Pull Request. It cannot be merged through Gitea due to API limitations.

## 📋 Pull Request Information **Original PR:** https://github.com/Mintplex-Labs/anything-llm/pull/608 **Author:** [@timothycarambat](https://github.com/timothycarambat) **Created:** 1/16/2024 **Status:** ✅ Merged **Merged:** 1/16/2024 **Merged by:** [@timothycarambat](https://github.com/timothycarambat) **Base:** `master` ← **Head:** `570-document-api-return-object` --- ### 📝 Commits (5) - [`9fd0434`](https://github.com/Mintplex-Labs/anything-llm/commit/9fd0434f7ea7894e250772858a349f56b70699d2) Add support for fetching single document in documents folder - [`fbc9b71`](https://github.com/Mintplex-Labs/anything-llm/commit/fbc9b71f3460ddb0b5a66400de70d04b54e460ae) Add document object to upload + support link scraping via API - [`5a3c809`](https://github.com/Mintplex-Labs/anything-llm/commit/5a3c80924d90607c3da1b8fd26bbf64d16b3cc33) merge with master - [`1c7addf`](https://github.com/Mintplex-Labs/anything-llm/commit/1c7addfceca686066b12d473682a60cc93a98712) hotfixes for documentation - [`c4c9a4d`](https://github.com/Mintplex-Labs/anything-llm/commit/c4c9a4de95414f4770a8971a69db8a991c13d063) update api docs ### 📊 Changes **14 files changed** (+324 additions, -43 deletions) <details> <summary>View changed files</summary> 📝 `collector/index.js` (+12 -4) 📝 `collector/processLink/convert/generic.js` (+10 -3) 📝 `collector/processSingleFile/convert/asAudio.js` (+11 -3) 📝 `collector/processSingleFile/convert/asDocx.js` (+10 -3) 📝 `collector/processSingleFile/convert/asMbox.js` (+12 -3) 📝 `collector/processSingleFile/convert/asOfficeMime.js` (+10 -3) 📝 `collector/processSingleFile/convert/asPDF.js` (+10 -3) 📝 `collector/processSingleFile/convert/asTxt.js` (+10 -3) 📝 `collector/processSingleFile/index.js` (+4 -0) 📝 `collector/utils/files/index.js` (+12 -7) 📝 `server/endpoints/api/document/index.js` (+117 -4) 📝 `server/endpoints/api/workspace/index.js` (+2 -2) 📝 `server/swagger/openapi.json` (+102 -3) 📝 `server/utils/files/documentProcessor.js` (+2 -2) </details> ### 📄 Description ### Pull Request Type <!-- For change type, change [ ] to [x]. --> - [x] ✨ feat - [ ] 🐛 fix - [ ] ♻️ refactor - [ ] 💄 style - [ ] 🔨 chore - [ ] 📝 docs ### Relevant Issues <!-- Use "resolves #xxx" to auto resolve on merge. Otherwise, please use "connect #xxx" --> resolves #570 ### What is in this change? Return `documents` in response of API `/document/upload` for all supported filetypes Support scraping of URLs via API ### Developer Validations <!-- All of the applicable items should be checked. --> - [x] I ran `yarn lint` from the root of the repo & committed changes - [x] Relevant documentation has been updated - [x] I have tested my code functionality - [x] Docker build succeeds locally --- <sub>🔄 This issue represents a GitHub Pull Request. It cannot be merged through Gitea due to API limitations.</sub>
yindo added the pull-request label 2026-02-22 18:33:44 -05:00
yindo closed this issue 2026-02-22 18:33:44 -05:00
yindo changed title from [PR #608] 570 document api return object to [PR #608] [MERGED] 570 document api return object 2026-06-05 15:13:19 -04:00
Sign in to join this conversation.
1 Participants
Notifications
Due Date
No due date set.
Dependencies

No dependencies set.

Reference: Mintplex-Labs/anything-llm#3418