Flights

Create a new flight record

post/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)

Request body

_idstring

Document ID

_revstring

Document revision

type'Flight' required

Document type, must be "Flight"

namestring required

Flight name (required, non-empty)

flight_datestring required

Flight date in YYYY-MM-DD format

capacityinteger required

Flight capacity (required, positive integer)

completedboolean

Whether the flight is completed

Response

Flight record created successfully

_idstring

Document ID

_revstring

Document revision

type'Flight' required

Document type, must be "Flight"

namestring required

Flight name (required, non-empty)

flight_datestring required

Flight date in YYYY-MM-DD format

capacityinteger required

Flight capacity (required, positive integer)

completedboolean

Whether the flight is completed

Changes