Last active
July 8, 2018 16:45
-
-
Save projectxcappe/c426e608d7dce664526f1d984ed4cb14 to your computer and use it in GitHub Desktop.
API_Endpoints
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
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