-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathdev-api.http
More file actions
144 lines (99 loc) · 2.79 KB
/
dev-api.http
File metadata and controls
144 lines (99 loc) · 2.79 KB
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
135
136
137
138
139
140
141
142
143
144
@host=ec2-3-230-55-29.compute-1.amazonaws.com:3000
# @name login
POST http://{{host}}/auth/login HTTP/1.1
content-type: application/x-www-form-urlencoded
username=tagdev&password={{$processEnv TAG_AUTH_PASSWORD}}
###
@authToken = {{login.response.body.access_token}}
# @name listar_alimentos
GET http://{{host}}/foods HTTP/1.1
Content-Type: application/json
Authorization: Bearer {{authToken}}
###
# @name listar_turmas
GET http://{{host}}/classroom HTTP/1.1
Content-Type: application/json
Authorization: Bearer {{authToken}}
###
# @name listar_cardapios
GET http://{{host}}/food/menu HTTP/1.1
Content-Type: application/json
Authorization: Bearer {{authToken}}
###
# @name listar_estoque
GET http://{{host}}/food/inventory HTTP/1.1
Content-Type: application/json
Authorization: Bearer {{authToken}}
###
# @name students
GET http://{{host}}/students?school=6244c323f0a8e92a8c6fad02&perPage=1000 HTTP/1.1
Content-Type: application/json
Authorization: Bearer {{authToken}}
###
# @name studentsEnrollments
GET http://{{host}}/studentEnrollment/62065f3e821343395cf23263 HTTP/1.1
Content-Type: application/json
Authorization: Bearer {{authToken}}
###
# @name create_student
POST http://{{host}}/students HTTP/1.1
Content-Type: application/json
Authorization: Bearer {{authToken}}
{
"name": "Aluno teste",
"register_type": "RG",
"sex": 0,
"color_race": 0,
"filiation": 0,
"nationality": 0,
"birthday": "19/04/1995",
"send_year": 2022,
"edcenso_nation_fk":"61ee3e877652254244a8b224",
"edcenso_uf_fk": "61a92b6dd2b8a11704d7ae6a",
"edcenso_city_fk": "61a92c8ed2b8a11704d813fe",
"school_inep_id_fk":"61a9433412656f31249d2aa2"
}
###
# @name list_student_enrollment
GET http://{{host}}/studentEnrollment HTTP/1.1
Content-Type: application/json
Authorization: Bearer {{authToken}}
###
# @name school
GET http://{{host}}/school HTTP/1.1
Content-Type: application/json
Authorization: Bearer {{authToken}}
###
# @name create_school
POST http://{{host}}/school HTTP/1.1
Content-Type: application/json
Authorization: Bearer {{authToken}}
{
"name": "Escola modelo"
}
###
# @name edsenso_city
GET http://{{host}}/edcensoCity HTTP/1.1
Content-Type: application/json
Authorization: Bearer {{authToken}}
###
# @name instuctor-teacher
GET http://{{host}}/instructor HTTP/1.1
Content-Type: application/json
Authorization: Bearer {{authToken}}
###
# @name instuctor-teaching-data
GET http://{{host}}/instructorTeachingData HTTP/1.1
Content-Type: application/json
Authorization: Bearer {{authToken}}
###
# @name Calendar
GET http://{{host}}/calendar HTTP/1.1
Content-Type: application/json
Authorization: Bearer {{authToken}}
###
# @name /edcensoNation
GET http://{{host}}/edcensoNation HTTP/1.1
Content-Type: application/json
Authorization: Bearer {{authToken}}
###