-
Notifications
You must be signed in to change notification settings - Fork 0
Backend Routes
rachanavishwanath edited this page Sep 24, 2020
·
4 revisions
HTML##
-
GET /StaticPagesController#root
-
GET /api/users/- returns user information of all expenses -
POST /api/users/- sign up
-
POST /api/session/- log in -
DELETE /api/session/- log out
-
GET api/friends/- fetches all friends -
POST api/friends/- creates a new friend -
DELETE api/friends/:friend_id- removes a friend
-
GET api/groups/- fetches all groups -
GET api/groups/:group_id- fetches one group -
POST api/groups/- create a new group -
PATCH api/groups/:group_id- update existing group -
DELETE api/groups/:group_id- delete existing group
-
GET api/expenses/- fetches all expenses -
GET api/expenses/:expense_id- fetches one specific expense (show page) -
GET api/expenses/:friend_id/:expense_id- fetches all expenses with one particular friend -
PATCH api/expenses/:expense_id- update expense -
DELETE api/expenses/:expense_id- remove expense
-
GET api/:expense_id/expense_details- gets expense details of the expense -
PATCH api/expense_details/:expense_details_id- updates expense details of the expense -
POST api/expense_details- creates expense details for the expense
-
GET api/:expense_id/additional_details/- gets all additional_details of an expense -
POST api/:expense_id/additional_details/- creates additional_details for an expense -
DELETE api/additional_details/:additional_details- deletes an additional_detail
-
GET api/categories- fetches all categories and subcategories