npm start
method: post
http://localhost:8080/api/user/register/:id tạo tài khoản nhân viên: truyền id point
http://localhost:8080/api/user/register-leader/:id tạo tài khoản nhân viên: truyền id point
http://localhost:8080/api/user/admin đăng nhập admin
http://localhost:8080/api/user/gathering-point-leader đăng nhập trưởng điểm TK
http://localhost:8080/api/user/head-of-transaction-point đăng nhập trưởng điểm GD
http://localhost:8080/api/user/edit-state/:id cập nhật trạng thái user(role: leader mới cập nhật được)
http://localhost:8080/api/user/logout Đăng xuất (xóa token đang đăng nhập)
Update:
http://localhost:8080/api/user/login-Transactionpointstaff đăng nhập tài khoản nhân viên giao dịch
http://localhost:8080/api/user//login-Assemblypointstaff đăng nhập tài khoản nhân viên tập kết
method: get
http://localhost:8080/api/user/all-users lấy toàn bộ user
http://localhost:8080/api/user/all-leader lấy toàn bộ leader
method: put
http://localhost:8080/api/user/edit-user chỉnh sửa user
method: post
http://localhost:8080/api/point tạo point mới
method: get
http://localhost:8080/api/point lấy toàn bộ point
http://localhost:8080/api/point/:id lấy point theo id
method: post
http://localhost:8080/api/order tạo order mới
http://localhost:8080/api/order/update cập nhật trạng thái đơn hàng
method: get
http://localhost:8080/api/order lấy toàn bộ order
http://localhost:8080/api/order/:id lấy order theo id
Update:
http://localhost:8080/api/order/all-order-in-point // tìm tất cả các đơn hàng có orderLocation bằng địa chỉ của điểm.
http://localhost:8080/api/order/all-order-create-point //trưởng điểm tìm tất cả các đơn hàng có originalLocaltion trùng với point của trưởng điểm
http://localhost:8080/api/order/all-order-in-point-admin/:id //admin tìm tất cả các đơn hàng có location bằng địa chỉ điểm, truyền id của point muốn tìm
method: put
http://localhost:8080/api/order/new-location/:id // update vị trí hiện tại của đơn hàng bằng point id
http://localhost:8080/api/order/status/:id // cập nhật trạng thái đơn hàng