This is a simple order API written in Spring Boot with two entities namely Order and Items holding one to n relationship(One order will have n items).
- Order(OrderId, CustomerId, DateOfDelivery, AddressOfDelivery, Items(ItemId list))
- Item(ItemId, Name, Cost)
- OrderController ==> Place Order and return total cost of the order.
- ItenController ==> List the list of item ids available in database.
- OrderRestRepository ==> It is a RepositoryRestResource which facilitates CRUD operations for ORDER entity while providing RESTful services.
- ItemRestRepository ==> It is a RepositoryRestResource which facilitates CRUD operations for ITEM entity while providing RESTful services.