peter-desrosiers / Potluck

Intuit Senior Project
1 stars 0 forks source link

Fixed backend #32

Closed brandoncornel closed 6 years ago

brandoncornel commented 6 years ago

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

simulator screen shot - iphone 6 - 2018-03-27 at 21 03 29 simulator screen shot - iphone 6 - 2018-03-27 at 21 03 31 simulator screen shot - iphone 6 - 2018-03-27 at 21 03 20 simulator screen shot - iphone 6 - 2018-03-27 at 21 03 22 simulator screen shot - iphone 6 - 2018-03-27 at 21 03 24

simulator screen shot - iphone 6 - 2018-03-27 at 21 02 49

brandoncornel commented 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 }