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

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

initial commit

  • Property mode set to 100644
File size: 1.2 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": "Sixth Planner Check", "description": "First 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###
32POST http://localhost:8080/api/trip/locations
33Content-Type: application/x-www-form-urlencoded
34
35locName=Macedonia&companion=Wandering Solo&region=Skopje Region&categories=sightseeing&numberOfDays=1
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/x-www-form-urlencoded
55
56lid=1&pid=1
Note: See TracBrowser for help on using the repository browser.