E-commerce RESTful API made by developers for developers
Application with basic security authentication, default username and password.
- (POST)
/store/product
- Register a new Product
{
"name": "The Best and Most Complete Book of Java",
"productQuantity": "500",
"price": 15
}
- (POST)
/store/customer
- Register a new Consumer
{
"name": "Richard",
"document": "12638840084"
}
- (POST)
/store/order
- Register a new Purchase Order
{
"products":[
{
"productCode":"38894d75-35ef-4988-96c7-9ec9c247c50e",
"productQuantity":20
}
],
"consumerCode":"27e66321-bd92-4c06-b603-074edfb79810"
}
- (GET)
/store/product
- List all products - (GET)
/store/customer
- List all customers - (GET)
/store/order
- List all customers
- (GET)
/store/product/{productCode}
- Product by {productCode} - (GET)
/store/customer/{customerCode}
- Customer by {customerCode} - (GET)
/store/order/{documentCustomer}
- Order by {documentCustomer}