Sample e-commerce backend application(Java, Spring Boot, MYSQL)
- Create User:
url: http://localhost:8080/users request: post body: { "userName": "user_04", "emailId": "user_04@email.com" }
- Delete User by Id:
url: http://localhost:8080/users/{id} request: delete
- Get User by Id:
url: http://localhost:8080/users/{id} request: get
- Get User by emailId:
url: http://localhost:8080/users/{emailId} request: get
- Get All users:
url: http://localhost:8080/users request: get
- Create Item:
url: http://localhost:8080/items request: post body: { "itemName": "Shoe", "itemDesc": "sparx shoe", "itemPrice": 750, "availableQty": 60 }
- Update Item:
url: http://localhost:8080/items/{id} request: put body: { "id": 7, "itemName": "Shoe", "itemDesc": "sparx shoe", "itemPrice": 750, "availableQty": 60 }
- Delete Item:
url: http://localhost:8080/items/{id} request: delete
- Get Item by Id:
url: http://localhost:8080/items/{id} request: get
- Get All Items:
url: http://localhost:8080/items request: get
- Create Order:
url: http://localhost:8080/orders request: post body: { "itemId": 7, "noOfItems": 20, "emailId": "user_04@email.com" }
- Get Order by Id:
url: http://localhost:8080/orders/{id} request: get
- Get All Orders:
url: http://localhost:8080/orders request: get