The example application is an e-commerce application which is based on Micro Service and Spring Cloud.
http://microservices.io/patterns/microservices.html
This example application provides REST API for viewing and getting inventory item and saving shipping information.
- Spring Boot
- MyBatis
- Spring Cloud (Eureka, Ribon, and so on)
- Thymeleaf
- ...
- GET /inventory/items/
- Gets all items.
- GET /inventory/items/category/{id}
- Gets items which belong to specify category.
- GET /inventory/items/{id}
- Gets specify item.
- POST /inventory/update/
- When user orders some item, this bulk API is called from shipping service.
- NOTE: This API needs request body of list which includes Item id, Item unit and Item versionNo.
- GET /inventory/check/{id}
- This is internal API that returns Item information, which only includes Item id, Item unit and Item versionNo.
- e.g: /inventory/check/1/
If you specified invalid path (e.g. /inventory/iiiite, /inventory/items, /inventory/item/aaaa/) on browser or REST access, this example application will be returned JSON message which includes an error infomation.
- /shipping/order/
- Order item with JSON message as follows.
{
"item":[
{
"id":1,
"unit":10
}
],
"senderName":"testSender",
"receiverName":"testReceiver",
"address":{
"zipCode":"123-4567",
"location":"locloclocloc"
}
}
TODO
TODO
TODO
TODO
Run all application using Gradle command on spring-microservice-for-e-commerce directory.
$spring-microservice-for-e-commerce> ./gradlew bootRun --parallel --max-workers=6
When you run Gradle command, there is a point to be mindful of.
First, your pc must be online.
If your pc is offline, Netflix products won't work.
Please access 'http://localhost:8110'.
Please access 'http://localhost:8110/admin/'