Skip to content

Commit

Permalink
docs: changes in 03-session.md
Browse files Browse the repository at this point in the history
  • Loading branch information
glaucia86 authored and sinedied committed Mar 27, 2024
1 parent 60e8749 commit 3be7793
Showing 1 changed file with 1 addition and 11 deletions.
12 changes: 1 addition & 11 deletions docs/development/03-session.md
Original file line number Diff line number Diff line change
Expand Up @@ -216,18 +216,10 @@ Content-Disposition: form-data; name="file"; filename="test.pdf"
Content-Type: application/pdf
< ../../data/support.pdf
--Boundary
Content-Disposition: form-data; name="options"
{
"category": "test-category",
"wait": true,
"useVectors": true
}
--Boundary--
```

In this file, we added the `POST` request to the `upload` API. Note that we are sending the `test.pdf` file that is in the `data` folder. In addition, we are sending an `options` object with the properties `category`, `wait` and `useVectors`.
In this file, we added the `POST` request to the `upload` API. Note that we are sending the `test.pdf` file that is in the `data` folder. This file is a support document that we will use to test the `upload` API.

Perfect! Now we can test the `upload` API. To do this, let's use Visual Studio Code's own terminal. Execute the command inside the `api` folder:

Expand All @@ -243,8 +235,6 @@ The following message will appear, as shown in the image below:

Now, open the `api.http` file and click on the `Send Request` button next to the `Upload PDF Document` request.

Se tudo correr bem, você verá a seguinte mensagem:

If everything goes well, you will see the following message:

```json
Expand Down

0 comments on commit 3be7793

Please sign in to comment.