-
Notifications
You must be signed in to change notification settings - Fork 27
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
[ENH] Add GET
endpoints for documents
#547
Conversation
Done |
ec92164
to
435a268
Compare
The tests for user-specified MIME types in |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Looking pretty good William. Mostly comments about improving the tests. But we are already 95% there! Thanks for your patience!
6bc7a9d
to
83e7607
Compare
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.Document
s.A test utility
upload_documents
is also introduced for convenience when writing tests for endpoints.Much of the code in this PR is copied from or inspired by @blakerosenthal's #486