Skip to content

Instantly share code, notes, and snippets.

@anhquoc1104
Last active May 26, 2020 10:27
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save anhquoc1104/6e116681984bf359b2f28772a6522b9c to your computer and use it in GitHub Desktop.
Save anhquoc1104/6e116681984bf359b2f28772a6522b9c to your computer and use it in GitHub Desktop.
### 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