-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathrequest.rest
More file actions
66 lines (51 loc) · 1.25 KB
/
request.rest
File metadata and controls
66 lines (51 loc) · 1.25 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
###
POST http://localhost:3003/student/create
Content-Type: application/json
{
"name":"Daniel",
"email":"daniel@gmail.com",
"birthdate":"1993-05-19",
"hobbies": "Patinar."
}
####
POST http://localhost:3003/class/create
Content-Type: application/json
{
"name":"Turma Neil-na-night.",
"start_date":"2022-03-01",
"end_date":"2022-09-01",
"type_class": "Noturna"
}
###
POST http://localhost:3003/teacher/create
Content-Type: application/json
{
"name":"Neil",
"email":"Neil@gmail.com",
"birthdate":"1970-04-15",
"speciality": "Redux"
}
###
PUT http://localhost:3003/update/class
Content-Type: application/json
{
"tableName": "Students",
"peapleClassId": "1617566013084",
"peapleNewClassId": "1617619560126"
}
###
GET http://localhost:3003/students/1617547014022
###
GET http://localhost:3003/teachers/1617547014022
###
GET http://localhost:3003/search/age?id=1617546212494&&tableName=teachers
###
GET http://localhost:3003/students/hobbies
###
PUT http://localhost:3003/class/change-module?id=1617547014022&&module=1
###
DELETE http://localhost:3003/student/remove-class/1617566013084
###
DELETE http://localhost:3003/teacher/remove-class/:id
###
DELETE http://localhost:3003/student/remove/1617312546437