-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathRequest.http
More file actions
32 lines (24 loc) · 816 Bytes
/
Request.http
File metadata and controls
32 lines (24 loc) · 816 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
### Criar uma nota
POST http://localhost:8000/notes
Content-Type: application/json
{
"note": "{\"title\":\"Minha Nota Teste\",\"content\":\"Conteúdo da nota\"}"
}
### Listar todas as notas
GET http://localhost:8000/notes
### Ler uma nota específica (substitua 1 pelo ID desejado)
GET http://localhost:8000/notes/1
### Atualizar uma nota (substitua 1 pelo ID desejado)
PUT http://localhost:8000/notes/1
Content-Type: application/json
{
"note": "{\"title\":\"Nota Atualizada 1\",\"content\":\"Novo conteúdo\"}"
}
### Atualização parcial de uma nota (substitua 1 pelo ID desejado)
PATCH http://localhost:8000/notes/1
Content-Type: application/json
{
"note": "{\"content\":\"Conteúdo alterado apenas Teste\"}"
}
### Deletar uma nota (substitua 1 pelo ID desejado)
DELETE http://localhost:8000/notes/1