Skip to content

Instantly share code, notes, and snippets.

@ceeK
Last active August 29, 2015 14:16
Show Gist options
  • Save ceeK/38bb0ef9b5c778ea9fd8 to your computer and use it in GitHub Desktop.
Save ceeK/38bb0ef9b5c778ea9fd8 to your computer and use it in GitHub Desktop.

Upcoming

  • Passes
  • Full-text search

Passes

New object FITPass:

  • FITPass defines a month-long pass for an organisation. The pass contains:
  • identifier
  • organisation_id
  • price
  • duration in days

New object FITUserPass

  • FITUserPass defines an instantiation of a FITPass for a user. It includes the start date for their pass, which along with the duration of the associated FITPass determines the length the pass is valid for.
  • identifier
  • user_id
  • pass_id
  • start_date

New field on FITOrganisation

  • [FITPass] -> Array of passes offered by the organisation, currently limited to one all-you-can-eat pass.
  • Included in FITOrganisation response, so that I don't have to request it individually.

New field on FITUser

  • [FITUserPass] -> Array of passes currently being used by this user (gets sent when I request /user)
  • Included in FITUser response, so that I don't have to request it individually.

New parameter in POST /bookings

  • pass_id -> The identifier of the pass that is being used to purchase this class.
  • Can be nil
  • When will I set this:
  • When user is buying a pass to pay for an event. (pass_id will be for a FITPass)
  • When user is using their pass to pay for the event. (pass_id will be for a FITUserPass)
  • I will still pass stripe_token for new card.

Full-text search

  • New endpoint /search/fulltext (or whatever makes sense for you)
  • Param: string I want to query by.
  • Response: JSON of objects that match, that I can parse through. Perhaps separate them into two dictionaries: Venues and Events.
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment