View Code? Open in Web Editor
NEW
API backend for Badi - https://github.com/dotnize/badi-client
badi-server's Introduction
Primary tech stack:
- For initial setup & cloning the repository, read SETUP.md.
- For the contribution workflow & dealing with git branches, read CONTRIBUTING.md.
badi-server's People
Stargazers
Watchers
badi-server's Issues
TODO:
HTTP endpoints:
Auth
- GET
/auth
- POST
/auth/login
- POST
/auth/register
- POST
/auth/logout
ChatMessage
- GET
/chatmessage/room/:id
- returns an array of chatmessages in that room id
- GET
/chatmessage/:id
ChatRoom
- GET
/chatroom/user/:id
- returns an array of all chatrooms where the userid is a member
- GET
/chatroom/:id
- POST
/chatroom
Contract
- GET
/contract/:id
- GET
/contract/tradegroup/:id
- POST
/contract
- PUT
/contract/:id
- DELETE
/contract/:id
Inventory
- GET
/inventory
- returns an array of all inventories (for home/browse page)
- GET
/inventory/user/:id
- returns an array of all inventories owned by that user id
- GET
/inventory/:id
- POST
/inventory
- PUT
/inventory/:id
- DELETE
/inventory/:id
Notification
- GET
/notification/user/:id
- returns an array of all notifications for that user id
- GET
/notification/:id
- PUT
/notification/:id
- DELETE
/notification/:id
Rating
- GET
/rating/user/:id
- returns an array of all ratings for that user id
- GET
/rating/:id
- POST
/rating
- PUT
/rating/:id
- DELETE
/rating/:id
TradeGroup
- GET
/tradegroup/:id
- GET
/tradegroup/user/:id
- returns an array of all tradegroups that user id is part of
- POST
/tradegroup
- PUT
/tradegroup/:id
- DELETE
/tradegroup/:id
TradeInventory
- GET
/tradeinventory/:id
- GET
/tradeinventory/group/:id
- returns an array of all tradeinventories that are part of that tradegroup id
- POST
/tradeinventory
- PUT
/tradeinventory/:id
- DELETE
/tradeinventory/:id
TradeTransaction
- GET
/tradetransaction/group/:id
- returns an array of all transactions that are part of that tradegroup id
- GET
/tradetransaction/inventory/:id
- returns an array of all transactions that are part of that TradeInventory id (not Inventory)
- GET
/tradetransaction/:id
- POST
/tradetransaction
- PUT
/tradetransaction/:id
- DELETE
/tradetransaction/:id
User
- GET /user/:id
- PUT /user/:id
- DELETE /user/:id
Wish
- GET
/wish
- returns an array of all wishes (for home/browse page)
- GET
/wish/user/:id
- returns an array of all wishes owned by that user id
- GET
/wish/:id
- POST
/wish
- PUT
/wish/:id
- DELETE
/wish/:id
feel free to drop suggestions