Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

[ENH] Add GET endpoints for documents #547

Open
wants to merge 23 commits into
base: main
Choose a base branch
from

Conversation

smokestacklightnin
Copy link
Contributor

@smokestacklightnin smokestacklightnin commented Jan 28, 2025

This PR partially addresses #466 and supersedes certain respective parts of #486.

The new endpoints, all using the GET method, in this PR are as follow:

  • /documents
  • /documents/{id}
  • /documents/{id}/content

Additionally, we now include MIME types in ragna.core.Documents.

Much of the code in this PR is copied from or inspired by @blakerosenthal's #486

@smokestacklightnin smokestacklightnin linked an issue Jan 28, 2025 that may be closed by this pull request
ragna/core/_document.py Outdated Show resolved Hide resolved
ragna/deploy/_engine.py Outdated Show resolved Hide resolved
ragna/deploy/_engine.py Outdated Show resolved Hide resolved
ragna/deploy/_database.py Outdated Show resolved Hide resolved
@smokestacklightnin smokestacklightnin self-assigned this Jan 28, 2025
@smokestacklightnin smokestacklightnin changed the title [ENH] Document Viewer [ENH] Add GET endpoints for documents Jan 29, 2025
@smokestacklightnin
Copy link
Contributor Author

All that currently remains for this PR is to add unit tests for the new API endpoints.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants