-
Notifications
You must be signed in to change notification settings - Fork 1
/
requests.http
135 lines (86 loc) · 1.96 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
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
110
111
112
113
114
115
116
117
118
119
120
121
122
123
124
125
126
127
128
129
130
131
132
133
134
@host = http://localhost:3000
@token = {{signin.response.body.token}}
### List Users
GET {{host}}/users/
Authorization: bearer {{token}}
### Create User
# @name createUser
POST {{host}}/users
Content-Type: application/json
Authorization: bearer {{token}}
{
"name": "Thiago",
"email": "thiago@gmail.com",
"password": "123",
"fusoh": "America/Sao_Paulo",
"horarioverao": "sim",
"infoeyesup": "sim",
"infoparc": "sim"
}
### Update User
PUT {{host}}/users/10
Content-Type: application/json
Authorization: bearer {{token}}
{
"name": "Abrantes",
"email": "Abrantes@gmail.com"
}
### Delete User
DELETE {{host}}/users/15
Authorization: bearer {{token}}
### Signin
### only when create USER exists
# @name signin
POST {{host}}/signin
Content-Type: application/json
{
"email": "thiago@gmail.com",
"password": "123"
}
### Signin 401 not found
# @name signin
POST {{host}}/signin
Content-Type: application/json
{
"email": "thiago@email.com",
"password": "321"
}
//¬~{&}12octprojct¬~{&}
### Get All API
GET {{host}}/status
### Create API
#inform the id of the user
# @name createStatusController
POST {{host}}/status/32
Content-Type: application/json
{
"name": "globzzz",
"protocolo": "http",
"address": "zzzzzlolgggloballl.com.br"
}
### Remove API
DELETE {{host}}/status/47
### Update API
PUT {{host}}/status/17
Content-Type: application/json
{
"name": "ifpb",
"address": "dados.ifpb.edu.brrrrrrrr"
}
### Get
### only when create API exists
GET {{host}}/status/91
### Get status api
### only when create API exists
GET {{host}}/status/api
### Get send notification
POST {{host}}/send
Content-Type: application/json
{
"email": "caway28271@dmonies.com",
"subject": "EyesUp - Notificação!",
"message": "<h1>Olá Usuário!</h1> <p>você está recebendo essa notificação porque seu site está fora do ar. Acesse o EyesUp para mais informações.</p>"
}
### Get ip return
#inform the id of the status host
GET {{host}}/ip/120