Skip to content

Instantly share code, notes, and snippets.

@projectxcappe
Last active July 8, 2018 16:45
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save projectxcappe/c426e608d7dce664526f1d984ed4cb14 to your computer and use it in GitHub Desktop.
Save projectxcappe/c426e608d7dce664526f1d984ed4cb14 to your computer and use it in GitHub Desktop.
API_Endpoints
POST /api/register
Register a user or login an existing user. Send along `email` and `password`. A new user won't be created if a user already has that email. You'll get back an `api_token` to use for requests that need authorization.
POST /api/stripe_token
For Stripe SDK to get the token it needs to approve a charge. Send along `stripe_version` and get back the JSON for the key or an error.
GET /api/venues
For a list of venues open to the public.
GET /api/places/:id
For a list of places inside a venue, where `:id` is the id of the venue.
POST /api/order
To make a new order. Send along `food_id` as an array of food ids, and the `place_id` **Requires API Token Authorization**
GET /api/order
For a history of orders for the current user. **Requires API Token Authorization**
POST /api/forgot_password
To go through the process of forgot password. Send along with `email` of user.
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment