-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathhttp-client.http
More file actions
41 lines (32 loc) · 930 Bytes
/
Copy pathhttp-client.http
File metadata and controls
41 lines (32 loc) · 930 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
// Descomente a linha abaixo caso não tenha o arquivo http-client.env.json configurado
// @HostAddress= http://localhost:8080
### GetMain
// Deve retornar 200 e html
GET {{HostAddress}}
### PostMain
// Deve retornar 200 e html
POST {{HostAddress}}
### PatchMain
// Deve retornar 302 Found - Redirecting to /
PATCH {{HostAddress}}
### DeleteMain
// Deve retornar 200 e html
DELETE {{HostAddress}}
### PostToRandomRoute
// Deve retornar 200 e html
POST {{HostAddress}}/somegibberishinformation/anothergibberishinformation
### PostUserCheckNotValid
// Deve retornar 400 - não é nome válido
POST {{HostAddress}}/usercheck
Content-Type: application/json
{
"username": "shit"
}
### PostUserCheck
// Deve retornar 204 caso não exista um usuário com o nome logado
// Deve retornar 403 caso exista um usuário com o nome logado
POST {{HostAddress}}/usercheck
Content-Type: application/json
{
"username": "iugmali"
}