Closed brandoncornel closed 6 years ago
****INSTRUCTIONS AND ENDPOINT DETAILS FOR API*** GET: Get all Potlucks: /potlucks
POST: Creates a new potluck using request /potlucks/
GET: Get all potlucks for a user using the specified username
/potlucks/username/
GET: Get details on a specific potluck using the potluck ID(oid)
/potlucks/potluckID/
PUT: Update a specific potluck using the potluck ID(oid)
/potlucks/potluckID/
FORMAT FOR POTLUCK:
{ "members": [ { "username": "bcc4679", "name": "Brandon Cornel", "amount": 0, "isAdmin": true } ], "potluckName": "RANDOMN POTLUCK", "potluckDescription": "I want Apples!!!!", "isGroupPotluck": false, "showPercentage": false, "pricePerPerson": 3000, "dateDue": "2018-05-18", "adminUsername": "bcc4679", "numberOfUsers": 1 }
Sooooooooo... I updated the backend so it has support for potluck stuff(CRU no D yet) using potluck ID. You can also fetch all the potlucks for specific user using a username. Instructions are pinned in slack
These are the following features that will be completed once this merge is complete: Creating a potluck(group[% and y/n] and personal) Viewing details for each potluck *Navigation to account screen
Will include details and endpoints for API in a comment