-
Notifications
You must be signed in to change notification settings - Fork 0
/
INFO.txt
80 lines (65 loc) · 2.68 KB
/
INFO.txt
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
mvn archetype:generate -DarchetypeGroupId=org.glassfish.jersey.archetypes -DarchetypeArtifactId=jersey-quickstart-webapp -DarchetypeVersion=2.2
Define value for property 'groupId': com.shariqparwez
Define value for property 'artifactId': exercise-services
Define value for property 'version' 1.0-SNAPSHOT: :
Define value for property 'package' com.shariqparwez: :
Confirm properties configuration:
groupId: com.shariqparwez
artifactId: exercise-services
version: 1.0-SNAPSHOT
package: com.shariqparwez
Y: : Y
[SAMPLE-GET] http://localhost:8080/exercise-services/webapi/myresource
http://localhost:8080/exercise-services/webapi/activities
curl -X GET \
http://localhost:8080/exercise-services/webapi/activities \
-H 'Accept: application/json' \
-H 'Postman-Token: 9b39d1e6-b7a8-4985-89c0-b7f0b50f0808' \
-H 'cache-control: no-cache'
http://localhost:8080/exercise-services/webapi/activities/1234
curl -X GET \
http://localhost:8080/exercise-services/webapi/activities/1234 \
-H 'Accept: application/json' \
-H 'Postman-Token: b949d269-7203-44c6-b8ac-db706fd2bae2' \
-H 'cache-control: no-cache'
http://localhost:8080/exercise-services/webapi/activities/1234/user
curl -X GET \
http://localhost:8080/exercise-services/webapi/activities/1234/user \
-H 'Accept: application/json' \
-H 'Postman-Token: 7b452607-a73d-4065-9c87-b010b2b4b92c' \
-H 'cache-control: no-cache'
http://localhost:8080/exercise-services/webapi/activities/activity
curl -X POST \
http://localhost:8080/exercise-services/webapi/activities/activity \
-H 'Accept: application/json' \
-H 'Content-Type: application/x-www-form-urlencoded' \
-H 'Postman-Token: b6fc92cd-6f9f-43fb-a2c9-27c54b764a1b' \
-H 'cache-control: no-cache' \
-d 'duration=55&description=running&undefined='
curl -X POST \
http://localhost:8080/exercise-services/webapi/activities/activity \
-H 'Accept: application/xml' \
-H 'Content-Type: application/x-www-form-urlencoded' \
-H 'Postman-Token: a5b5e441-e3f3-4401-aa64-050ca45c6319' \
-H 'cache-control: no-cache' \
-d 'duration=55&description=running&undefined='
curl -X POST \
http://localhost:8080/exercise-services/webapi/activities/activity \
-H 'Accept: application/json' \
-H 'Content-Type: application/json' \
-H 'Postman-Token: 8fe103e0-61c3-4066-95db-be286e725c87' \
-H 'cache-control: no-cache' \
-d '{
"duration":55,
"desc":"running"
}'
curl -X POST \
http://localhost:8080/exercise-services/webapi/activities/activity \
-H 'Accept: application/xml' \
-H 'Content-Type: application/json' \
-H 'Postman-Token: 32100af7-d3bd-47a4-b75c-fcc5f8d954f5' \
-H 'cache-control: no-cache' \
-d '{
"duration":55,
"desc":"running"
}'