Inn Control Platform, illustrating development with Java, Spring Boot Framework, and Spring Data JPA on MySQL Database. It also illustrates open-api documentation configuration and integration with Swagger UI.
Get http://localhost:8080/inventory (Gets all items in inventory) http://localhost:8080/inventory/{id} (Gets a specific item in inventory) http://localhost:8080/inventory/brand?brandName={brandName} (Gets the items with the same brandName)
Post http://localhost:8080/inventory (Posts a new item)
{
"productTitle": "Name",
"productDescription": "Description",
"Brand": "Brand",
"Quantity": QuantityNumber
}
Put http://localhost:8080/inventory/{id} (Updates a specific item in inventory)
{
"productTitle": "Name",
"productDescription": "Description",
"Brand": "Brand",
"Quantity": QuantityNumber
}
For further reference, please consider the following sections:
- Official Apache Maven documentation
- Spring Boot Maven Plugin Reference Guide
- Create an OCI image
- Spring Data JPA
- Spring Boot DevTools
- Spring Web
The following guides illustrate how to use some features concretely: