-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathFirstNameTest.http
More file actions
executable file
·32 lines (27 loc) · 1.21 KB
/
FirstNameTest.http
File metadata and controls
executable file
·32 lines (27 loc) · 1.21 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
#!/usr/bin/bash
######################################
# POST http://localhost:8888/first_name
# Content-Type: application/json
# {
# "firstName": "Denis"
# }
######################################
curl --verbose --header "Content-Type: application/json" --data "{\"firstNameId\":1,\"firstName\":\"Denis\"}" http://localhost:8888/first_name
#curl --verbose --header "Content-Type: application/json" --data "{\"birthdayId\":1,\"birthday\":\"1980-10-26\"}" http://localhost:8888/birthday
######################################
# GET http://localhost:8888/
######################################
curl --verbose http://localhost:8888/
######################################
# GET http://localhost:8888/first_name
# Accept application/json
######################################
curl --verbose --header "Accept: application/json" http://localhost:8888/first_name
#########################################
# GET http://localhost:8888/first_name/1
#########################################
curl --verbose http://localhost:8888/first_name/1
############################################
# DELETE http://localhost:8888/first_name/1
############################################
curl --verbose -X DELETE http://localhost:8888/first_name/1