-
Notifications
You must be signed in to change notification settings - Fork 0
/
requests.http
49 lines (35 loc) · 1.47 KB
/
requests.http
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
43
44
45
46
47
48
49
###
GET http://localhost:8000/api/perguntas HTTP/1.1
###
GET http://localhost:8000/api/perguntas/1 HTTP/1.1
###
POST http://localhost:8000/api/perguntas HTTP/1.1
Content-Type: application/json
{
"titulo": "Docker compose não inicializa database MySQL",
"mensagem": "Lorem ipsum dolor sit amet, consectetur adipiscing elit. Donec luctus ante et congue ornare. Phasellus auctor lobortis ligula id euismod. Cras consectetur nisi sit amet odio finibus, vitae tincidunt libero maximus!",
"tags": "docker,docker-compose,spring-boot,java,web,development,backend"
}
################### RESPOSTAS #########################
###
POST http://localhost:8000/api/respostas HTTP/1.1
Content-Type: application/json
{
"pergunta_id": 1,
"mensagem": "As configurações do mysql via env vars são aplicadas na somente na primeira execução do docker compose up, Exclua os arquivos do volume montado e rode o compose up novamente!"
}
################### COMENTANDO RESPOSTAS #########################
###
POST http://localhost:8000/api/comentarios HTTP/1.1
Content-Type: application/json
{
"resposta_id": 1,
"mensagem": "Funfo! VLWWW"
}
###
POST http://localhost:8000/api/comentarios HTTP/1.1
Content-Type: application/json
{
"resposta_id": 1,
"mensagem": "Lorem ipsum dolor sit amet, consectetur adipiscing elit. Donec luctus ante et congue ornare. Phasellus auctor lobortis ligula id euismod. Cras consectetur nisi sit amet odio finibus, vitae tincidunt libero maximus.!"
}