-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathtest.http
40 lines (27 loc) · 791 Bytes
/
test.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
# https://cs262-monopoly-service.herokuapp.com/
# curl http://localhost:3000/players
GET http://localhost:3000//players
###
# curl
#--header 'Content-Type: application/json'
#--data '{"email":"[email protected]", "name":"test"}'
#http://localhost:3000/players
POST http://localhost:3000/players
Content-Type: application/json
{"email":"[email protected]", "name":"test"}
###
# curl http://localhost:3000/players/4
GET http://localhost:3000/players/4
###
# curl
#-X PUT
#--header 'Content-Type: application/json'
#--data '{"email":"[email protected]", "name": null}'
#http://localhost:3000/player/4
PUT http://localhost:3000/players/4
Content-Type: application/json
{"email": "[email protected]", "name": null}
###
# curl http://localhost:3000/players/4
DELETE http://localhost:3000/players/9
###