Authorization: Bearer ********************
{
"origin":"VAS",
"destination":"ESB"
}
curl --location --request POST 'https://test-api.ucuzyolu.com/customer/favorites/flight' \
--header 'client-id: 302382-1928283273-237723829-292999' \
--header 'Content-Type: application/json' \
--data-raw '{
"origin":"VAS",
"destination":"ESB"
}'
{
"data": {
"id": 4,
"origin": "IST",
"destination": "ESB",
"date": "2024-10-30",
"adt": 1,
"chd": 0,
"inf": 0,
"createdAt": "2024-09-23T17:38:45.000000Z",
"returnDate": null,
"flightType": "roundtrip",
"originAirport": {
"name": "Atatürk Havalimanı",
"code": "IST",
"city": "Istanbul"
},
"destinationAirport": {
"name": "Esenboğa Havalimanı",
"code": "ESB",
"city": "Ankara"
}
},
"success": true,
"code": 0,
"message": ""
}