33 lines
670 B
HTTP
33 lines
670 B
HTTP
PUT http://localhost:3000/api/passengers/123456789
|
|
Content-Type: application/json
|
|
|
|
{
|
|
"name": "John Doe",
|
|
"dateOfBirth": "1990-01-01T00:00:00.000Z",
|
|
"isFemale": false
|
|
}
|
|
|
|
### get all
|
|
GET http://localhost:3000/api/passengers/
|
|
|
|
### get one
|
|
GET http://localhost:3000/api/passengers/123456789
|
|
|
|
|
|
### get all airports
|
|
GET http://localhost:3000/api/airports/?icaoCodes=true
|
|
|
|
### get one airports
|
|
GET http://localhost:3000/api/airports/EDDF
|
|
|
|
###
|
|
PUT http://localhost:3000/api/flights/AB123
|
|
Content-Type: application/json
|
|
|
|
{
|
|
"departure": "2023-12-01T10:00:00.000Z",
|
|
"arrival": "2023-12-01T14:00:00.000Z",
|
|
"operates": "OE-LAB",
|
|
"departs": "LOWW",
|
|
"arrives": "EDDF"
|
|
} |