-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathrequest.http
36 lines (30 loc) · 868 Bytes
/
request.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
###
GET http://localhost:4000/courses HTTP/1.1
###
GET http://localhost:4000/courses/6342e5bf1ed59e43e6951abb/bestStudent HTTP/1.1
###
GET http://localhost:4000/courses/63419c751d60b1803a1d9ddc HTTP/1.1
###
GET http://localhost:4000/courses/63419c751d60b1803a1d9ddc/students HTTP/1.1
###
POST http://localhost:4000/courses HTTP/1.1
Content-Type: application/json
{
"yearOfDictation": 2020,
"duration": "2 months",
"theme": "React"
}
###
POST http://localhost:4000/courses/63419c751d60b1803a1d9ddc/students HTTP/1.1
Content-Type: application/json
{
"name": "PRUEBA5",
"lastName": "Prueba 2",
"dni": 123456789,
"adress": "calle 1 534",
"note": 11
}
###
DELETE http://localhost:4000/courses/63419c751d60b1803a1d9ddc/students/63419cb81d60b1803a1d9de4 HTTP/1.1
###
DELETE http://localhost:4000/courses/63418ebf788a54d1e72b39dd HTTP/1.1