https://github.com/mrprkr/tab_it
https://github.com/mrprkr/tab_it
Last synced: about 1 month ago
JSON representation
- Host: GitHub
- URL: https://github.com/mrprkr/tab_it
- Owner: mrprkr
- Created: 2015-04-03T08:03:44.000Z (about 10 years ago)
- Default Branch: master
- Last Pushed: 2015-04-12T02:36:23.000Z (about 10 years ago)
- Last Synced: 2025-01-25T07:09:51.629Z (3 months ago)
- Language: JavaScript
- Size: 812 KB
- Stars: 0
- Watchers: 1
- Forks: 0
- Open Issues: 0
-
Metadata Files:
- Readme: README.md
Awesome Lists containing this project
README
##Endpoints
###GET
- /api - returns welcome message
- /api/houses - returns all houses
- /api/house/:house_id - returns a house
- /api/house/:house_id/transactions - returns all house transactions
- /api/house/:house_id/transaction/:transaction_id - returns single house transaction
- /api/house/:house_id/users - returns all users
- /api/house/:house_id/user/:user_id - returns a user
- /api/house/:house_id/user/:user_id/transactions - returns user's transactions###POST
- /api/house/new - creates a new house | {name}
- /api/house/:house_id/transactions/new - creates a new transaction | {name, user, amount, split}
- /api/house/:house_id/user/new - create a new user | {name}###DELETE (for dev only)
- /api/house/:house_id - delate a house by ID
- /api/house/:house_id/user/:user_id - delete a user by ID
- /api/house/:house_id/transaction/:transaction_id - delete a transaction by ID##new Endpoints
###GET
- /api/tabs - List all tabs
- /api/tab/:tab_id - List specific tab
- /api/users - List all users
- /api/user/:user_id - list specific user##POST
- /api/tabs/new - Create a new tab {name, user_id}
- /api/users/new - Create a new user {name, email, password}
- /api/clean - Clean a user {user_id}##delete
- /api/tab/:tab_id - delete a tab
- /api/user/:user_id - delete a user