HELP API
Flights
METHOD GET
Returns the list of all flights from our database. GET call could be done in several ways:
/flights Returns the list of all flights from our database.
/flights/idFlights=IDNumberOfFlight Returns the identifier for this flight.
METHOD POST
/flights
To add to the database will introduce these properties:
   {
    "idFlight": "Id Example",
    "orig": "Origin",
    "dest": "Destination",
    "datOut": "Out Date",
    "datReturn": "Return Date"
   }
The data types are:
   idFlight : Integer
   orig : String
   dest : String
   datOut : Integer
   datReturn: Integer
In /flights/idFlight this may not make
METHOD PUT
The PUT should be used to update a resource, which is chosen with IdFlight
/flights/idFligth
It updates the same way that properties are introduced into the POST.
In /flights this may not make .
METHOD DELETE
Would use:
/flights
To delete all resources flights.
/flights/idFlight
To sign remove the resource with this ID.
Parties
METHOD GET
Returns the list of all parties from our database. GET call could be done in several ways:
/parties Returns the list of all parties from our database.
/parties/id=IDNumberOfParties Returns the identifier for this party.
METHOD POST
/parties
To add to the database will introduce these properties:
   {
    "id": "Id Example",
    "city": "City Example",
    "party": "Party Example",
    "dateBegin": "Date Begin",
    "dateEnd": "Date End"
   }
The data types are:
   id : Integer
   city : String
   party : String
   dateBegin : Integer
   dateEnd: Integer
In /parties/id this may not make
METHOD PUT
The PUT should be used to update a resource, which is chosen with Id
/parties/id
It updates the same way that properties are introduced into the POST.
In /parties
this may not make.
METHOD DELETE
Would use:
/parties To delete all resources parties.
/parties/id To sign remove the resource with this ID.