chore: create an api.http
file to test upload
API [Close #06]
#22
Add this suggestion to a batch that can be applied as a single commit.
This suggestion is invalid because no changes were made to the code.
Suggestions cannot be applied while the pull request is closed.
Suggestions cannot be applied while viewing a subset of changes.
Only one suggestion per line can be applied in a batch.
Add this suggestion to a batch that can be applied as a single commit.
Applying suggestions on deleted lines is not supported.
You must change the existing code in this line in order to create a valid suggestion.
Outdated suggestions cannot be applied.
This suggestion has been applied or marked resolved.
Suggestions cannot be applied from pending reviews.
Suggestions cannot be applied on multi-line comments.
Suggestions cannot be applied while the pull request is queued to merge.
Suggestion cannot be applied right now. Please check back later.
Purpose
This PR is related with: #6 and close it too
api.http
file to test this API using REST Client extension.md
files related to guidance on how to execute this request in theapi.http
fileDoes this introduce a breaking change?
Pull Request Type
What kind of change does this Pull Request introduce?
How to Test
Or you can see in action in the gif below
What to Check
Verify that the following are valid
Other Information
This pull request includes changes to the
packages/api/api.http
file. The changes include modifying an API endpoint description and introducing a new way to upload PDF documents.API endpoint modification:
packages/api/api.http
: The description of the POST request to/api/chat
has been changed from "Chat with a bot (this is a sample)" to "Create a new question".Introduction of new upload method:
packages/api/api.http
: The POST request to/api/upload
has been updated to accept multipart/form-data. This allows for the uploading of PDF documents, with an example provided for a file named "test.pdf". Additionally, the request now accepts a JSON object named "options" with parameters for "category", "wait", and "useVectors".