Users need to be able to request food, called Solicitud de comidas.
It needs a model to store the data, the properties should be, the ones with *asterisk are required.
Short ID
Nombre Completo*
Agency
Email
Telefono
Twitter
Facebook
Dirección*
Ciudad (dropdown)
Zipcode*
How Many People*
How many days is food required for?
Have you been receiving food regularly? (Boolean)
Tell us more about it
How many days do you currently have food for?
Tell us more about it
How many Breakfasts?* default 0
How many Lunches?* default 0
How many dinners?* default 0
Any special needs or dietary restrictions?
When do you need to receive this by?
Status (open|delivered|invalid|duplicate|pending)
Timestamps
Make the phone or email required, meaning at least one or the other need to be in order for it to be valid. Find some help here
We need a short id so that people can track the status of a request by calling later or something. It has to unique and auto generated, but just a few characters, as opposed to the long mongo id. or it can be a subset of the long id.
Create the post endpoint that can be used by the frontend to store this data.
The endpoint can be POST /api/request. Respond with errors if failure, or the short id if it works.
Create an endpoint to verify that the request exists /api/request/:id and /api/request/status/:shortId that respond with all the data in the request.
Users need to be able to request food, called Solicitud de comidas.
It needs a model to store the data, the properties should be, the ones with *asterisk are required.
Make the phone or email required, meaning at least one or the other need to be in order for it to be valid. Find some help here
We need a short id so that people can track the status of a request by calling later or something. It has to unique and auto generated, but just a few characters, as opposed to the long mongo id. or it can be a subset of the long id.
Create the post endpoint that can be used by the frontend to store this data. The endpoint can be
POST /api/request
. Respond with errors if failure, or the short id if it works.Create an endpoint to verify that the request exists
/api/request/:id
and/api/request/status/:shortId
that respond with all the data in the request.