go run main.go
{
"username": "admin",
"password": "admin"
}
- login
POST http://localhost:8080/login
- get All Orders
GET http://localhost:8080/api/orders
- get Order by ID
GET http://localhost:8080/api/orders/:orderID
- Create new Order
POST http://localhost:8080/api/orders
- update Order
PUT http://localhost:8080/api/orders/:orderID
- delete Order
DELETE http://localhost:8080/api/orders/:orderID