-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathrequest.http
More file actions
42 lines (35 loc) · 886 Bytes
/
Copy pathrequest.http
File metadata and controls
42 lines (35 loc) · 886 Bytes
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
###
POST http://localhost:3000/produtos
Content-Type: application/json
{
"nome": "Produto Exemplo",
"descricao": "Descricao",
"fornecedor": "Fornecedor Exemplo",
"categoria": 1,
"subcategoria": 2,
"preco": 99.99,
"promocao": false,
"bucket": "exemplo-bucket"
}
###
GET http://localhost:3000/produtos/:id
###
POST http://localhost:3000/s3
Content-Type: multipart/form-data; boundary=MinhaBoundary
--MinhaBoundary
Content-Disposition: form-data; name="dados"
Content-Type: application/json
{
"nome": "Produto Exemplo",
"descricao": "Descricao",
"fornecedor": "Fornecedor Exemplo",
"categoria": 1,
"subcategoria": 2,
"preco": 99.99,
"promocao": false
}
--MinhaBoundary
Content-Disposition: form-data; name="file"; filename="s3_image.png"
Content-Type: image/png
@file=C:/Users/Joao/Pictures/s3_image.png
--MinhaBoundary--