Last active
May 26, 2020 10:27
-
-
Save anhquoc1104/6e116681984bf359b2f28772a6522b9c to your computer and use it in GitHub Desktop.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
### LOGIN | |
GET : /api/login => Load UI login page | |
POST : /api/login => auth login with email & password | |
### TRANSACTION | |
GET : /api/transactions/:page => Load UI home transaction page | |
GET : /api/transactions/create => Load UI create transaction page | |
PUT : /api/transactions/create => add new transaction | |
PATCH : /api/transactions/isComplete/:id => complete transaction | |
### USER | |
GET : /api/users/ => Load UI home user page | |
GET : /api/users/add => Load UI create user page | |
PUT : /api/users/add => add new user | |
POST : /api/users/ => search user | |
GET : /api/users/view/:id => Load UI detail user page | |
GET : /api/users/edit/:id => load UI edit user page | |
PATCH : /api/users/edit/:id => edit user | |
DELETE : /api/users/remove/:id => Delete user | |
### BOOK | |
GET : /api/ => Load HOME page | |
GET : /api/search => search book | |
GET : /api/create => Load UI create book page | |
PUT : /api/create/add => create new book | |
GET : /api/view/:id => view detail book | |
GET : /api/edit/:id => Load UI edit page | |
PATCH : /api/edit/title/:id => edit book | |
DELETE : /api/remove/:id => delete book | |
PATCH : /api/addToCart/:id => add book to cart | |
### CART | |
GET : /api/cart => Load UI cart page | |
PATCH : api/transaction/:id => add book to transaction |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment