From 3be77937185cd3e64299d3231f713bb3690c4175 Mon Sep 17 00:00:00 2001 From: Glaucia Lemos Date: Wed, 27 Mar 2024 09:50:17 -0300 Subject: [PATCH] docs: changes in `03-session.md` --- docs/development/03-session.md | 12 +----------- 1 file changed, 1 insertion(+), 11 deletions(-) diff --git a/docs/development/03-session.md b/docs/development/03-session.md index 14ffc52..5504009 100644 --- a/docs/development/03-session.md +++ b/docs/development/03-session.md @@ -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: @@ -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