create database productservice3oct23;
create user productservice3oct23;
grant all privileges on productservice3oct23.* to productservice3oct23;
- Implement code till 3381091c1c936fbdc4c1292fc5ef0c769d2b02cb yourself.
- Make sure all Controllers in /controllers/ are taking appropriate parameters as required by corresponding APIs in https://fakestoreapi.com/docs
- (Stretch) Try to understand https://spring.io/guides/gs/consuming-rest/ and implement FakeStoreProductServiceImpl.
- Implement all of the APIs under
Products
at: https://fakestoreapi.com/docs (other than Limit Results and Sort Results) - Make your FakeStoreProductServiceImpl not depend on RestTemplate at all. Instead of this it should depend on
FakeStoreClient
- Go through all of the APIs in CategoryController and ProductController
- Create a SelfProductService and SelfCategoryService implementing the corresponding interface
- Implement the code inside each of the services. This code should now work with corresponding repositories.