This is a brief highlight of the expected usage/functionality of the Free Lunch App from the Backend standpoint.
Feel free to add/remove/edit any neccessary infomation here.
Link to endpoints declaration Endpoints Template
Link to database schema Database Schema
-
- Create Organization
- Join Existing Organization using invite
- Login to App
user registers himself; along with the organization's Info. He automatically gets the admin role.
/api/auth/user/signup
-POST
/api/organization/create
-PUT
user registers using the verification token/link sent via the invite.
/api/organization/staff/signup
-POST
(could be/api/organizations/:org_id/users
)Login to App using email and password.
/api/auth/login
-POST
-
-
create/share invite to invitees email
/api/organization/invite
-POST
-
delete user form organization (to be considered)
-
-
-
view profile
/api/user/profile
-GET
(ideally should be/api/users/:user_id
) -
view all employees
/api/users
-GET
-
search for employee
/api/search/:name_or_email
-GET
-
view received lunch(es)
/api/lunch/all
-GET
(could be/api/users/:user_id/lunch
) -
send lunch
/api/lunch/send
-POST
-
get all lunch
/api/lunch/
-GET
-
get a lunch details
/api/lunch/:lunch_id
-GET
-
redeem lunch
/api/withdrawal/request
-GET
(could be/api/withdrawal
) -
add bank details
/api/user/bank
-POST
(could be/api/users/:user_id/bank
)
-