[javascript] iati
Viewer
- {
- name: "book_flights",
- method: "POST",
- url: "https://testapi.iati.com/rest/flight/v2/search",
- headers: {
- Content-Type: "application/json"
- },
- body: {
- from_destination: {
- city: true,
- code: "{{fromCode}}"
- },
- to_destination: {
- city: true,
- code: "{{toCode}}"
- },
- departure_date: "{{departureDate}}",
- return_date: "{{returnDate}}",
- pax_list: [
- {
- type: "ADULT",
- count: 1
- }
- ],
- accept_pending: true,
- cabin_type: "{{cabinType}}"
- },
- description: "Arabjet function sends a POST request to search for available flights based on specified parameters. It expects airport codes for departure and arrival, travel dates, a list of passengers, and cabin type."
- }
Editor
You can edit this paste and save as new: