Test task
Create Spring Boot application using Java 11 that serves Rest API for creating orders for some goods for example iPhones.
Requirements
- As a manager you should be able to add goods to db so clients will be able to buy them
- As a manager/client you should be able to list all available goods and their prices and quantities
- As a client you should be able to place orders for goods (multiple allowed for example in you order you can buy iPhone 13 Pro 5 units, and iPhone 11 10 units)
- Your application should manage risks and automatically delete not paid orders after 10 minutes after creation
- As a client you should be able to pay for your order so provide endpoint that will mark clients order as paid
Expected Result Cover your main logic with tests. Upload your project to any public git repository.