Holdo / travel-agency

A system for online holidays booking.

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

Welcome to Travel Agency!

You can try our rest by following curl commands:


Get list of all trips like this:

curl -X GET -i -H "Content-Type: application/json" http://localhost:8080/pa165/rest/trips

Get trip by id :

curl -X GET -i -H "Content-Type: application/json" http://localhost:8080/pa165/rest/trips/1

Create a new trip:

curl -X POST -i -H "Content-Type: application/json" --data '{"dateFrom":"01-04-2016","dateTo":"02-04-2016","destination":"Bratislava, Slovakia","numberOfAvailable":"10","price":"450.00"}' http://localhost:8080/pa165/rest/trips/create

To update trip by id:

curl -X PUT -i -H "Content-Type: application/json" --data '{"dateFrom":"01-05-2016","dateTo":"12-05-2016","destination":"Brno, Czech republic","numberOfAvailable":"2","price":"150.00"}' http://localhost:8080/pa165/rest/trips/7

To delete trip by id:

curl -X DELETE -i http://localhost:8080/pa165/rest/trips/7

About

A system for online holidays booking.


Languages

Language:Java 100.0%