Flights

Retrieve a list of all flights

Changed on

Retrieves all flights from the database using the CouchDB "Flights" view. Returns an array of flight objects containing name, flight_date, capacity, and completed fields.

get/flights

Request

  • Base URL: https://sshf-api-330507742215.us-central1.run.app
  • URL: https://sshf-api-330507742215.us-central1.run.app/flights
  • Auth: OAuth 2 (implicit, authorization URL https://accounts.google.com/o/oauth2/v2/auth)

Response

List of flights retrieved successfully

_idstring

Flight document ID

namestring

Flight name

flight_datestring date

Flight date in YYYY-MM-DD format

capacityinteger

Flight capacity

completedboolean

Whether the flight is completed

Changes