Video Demo Link: https://youtu.be/881ekuJlFWk
- http://localhost:8080/h2-console/
- jdbc url - jdbc:h2:mem:order_management
Note: For creating resources, i have used getRequest instead of post (because without postman we can test using simple browser)(For subscriber and order creation)
- http://localhost:8080/api/v1/add-customer/username/shashank - Create user by giving name ("Shashank")
- http://localhost:8080/api/v1/customers/discountDetail - Get All Discount Information of Customers
- http://localhost:8080/api/v1/customers/id/1 - Find Customer By ID
- http://localhost:8080/api/v1/customers - Find All Customers
- http://localhost:8080/api/v1/create-order/cust-id/1/amount/100 - Create Order
- http://localhost:8080/api/v1/order/id/1 - Find Order By Id
- http://localhost:8080/api/v1/orders - Final All Orders
- Spring Boot
- H2 Database
- Spring Data
- MVC Architecture
- Extract the file and import in the intellij idea
- No, need to import database, I have used in-memory database (H2 database)
- h2 console datasource: jdbc:h2:mem:order_management
- Default username and no password for h2 database
- Testcases are present under test folder (src/main/test)
For further reference, please consider the following sections: