source: trip-planner/src/test/api.http@ 6fe77af

Last change on this file since 6fe77af was 6fe77af, checked in by Ema <ema_spirova@…>, 3 years ago

add location feature

  • Property mode set to 100644
File size: 2.6 KB
Line 
1###
2GET http://localhost:8080/api/locations
3
4###
5GET http://localhost:8080/api/location/1
6
7###
8POST http://localhost:8080/api/planner
9Content-Type: application/x-www-form-urlencoded
10
11description=Fourth Planner Description&name=Fourth Planner&locationList=
12
13###
14POST http://localhost:8080/api/planner/new
15Content-Type: application/json
16
17{"name": "Second Planner Check", "description": "Second Planner Description", "locationList" : []}
18
19###
20PUT http://localhost:8080/api/edit/planner/6
21Content-Type: application/json
22
23{"name": "Sixth Planner Check", "description": "Sixth Planner Description", "locationList" : []}
24
25###
26GET http://localhost:8080/api/planners
27
28###
29GET http://localhost:8080/api/planner/1
30
31###
32GET http://localhost:8080/api/city/locations?cityId=1&companionId=1&lengthOfStay=1&categoryIds=1,2
33
34###
35GET http://localhost:8080/api/region/locations?regionId=1&companionId=1&lengthOfStay=1&categoryIds=1,2
36
37###
38GET http://localhost:8080/api/companions
39
40###
41GET http://localhost:8080/api/categories
42
43###
44GET http://localhost:8080/api/regions
45
46###
47GET http://localhost:8080/api/cities
48
49###
50GET http://localhost:8080/api/countries
51
52###
53PUT http://localhost:8080/api/add-location
54Content-Type: application/json
55
56{"plannerId": 1, "locationId": 2}
57
58###
59GET http://localhost:8080/api/planner/locations?plannerId=1
60Content-Type: application/x-www-form-urlencoded
61
62###
63GET http://localhost:8080/api/planner/locationIds?plannerId=2
64Content-Type: application/x-www-form-urlencoded
65
66###
67GET http://localhost:8080/api/weekend
68Content-Type: application/x-www-form-urlencoded
69
70###
71GET http://localhost:8080/api/villages
72Content-Type: application/x-www-form-urlencoded
73
74###
75GET http://localhost:8080/api/images?locationId=1
76Content-Type: application/x-www-form-urlencoded
77
78###
79POST http://localhost:8080/api/users/register
80Content-Type: application/json
81
82{"username": "teshht@test.com", "fullName": "nikola", "password" : "nikolce", "confirmPassword": "nikolce"}
83
84###
85POST http://localhost:8080/api/users/login
86Content-Type: application/json
87
88{"username": "test@test.com", "password" : "nikolce"}
89
90
91###
92GET http://localhost:8080/api/planners/user
93Content-Type: application/json
94
95###
96DELETE http://localhost:8080/api/delete-location
97Content-Type: application/json
98
99{"plannerId": 23, "locationId": 3}
100
101###
102GET http://localhost:8080/api/users/usernames
103Content-Type: application/json
104
105###
106GET http://localhost:8080/api/users/password
107Content-Type: application/json
108
109{"username": "ema@test.com"}
110
111###
112GET http://localhost:8080/api/all?place=Skopje
113Content-Type: application/json
114
115
116###
117GET http://localhost:8080/api/places
118Content-Type: application/json
119
120###
121POST http://localhost:8080/api/add
122Content-Type: application/json
Note: See TracBrowser for help on using the repository browser.