Skip to content

added 7 apis of products and categories as assignment#4

Open
Vishal70854 wants to merge 1 commit into
Naman-Bhalla:masterfrom
Vishal70854:master
Open

added 7 apis of products and categories as assignment#4
Vishal70854 wants to merge 1 commit into
Naman-Bhalla:masterfrom
Vishal70854:master

Conversation

@Vishal70854
Copy link
Copy Markdown

Implemented all the below mentioned api's with DB calls. I would like to hear back from you for any sort of improvement in my code.

// abstract method for create product
GenericProductDto createProduct(GenericProductDto product);

// abstract method for get product by id
GenericProductDto getProductById(UUID id) throws NotFoundException;

// get all products
List<GenericProductDto> getAllProducts();

// abstract method to delete product by id
GenericProductDto deleteProductById(UUID id);

// abstract method for update product by id
GenericProductDto updatePrductById(GenericProductDto genericProductDto,UUID id);

// get all categoris of a type
List<ProductDto> getCategoryById(String categoryName);

List<String> getAllCategories();


Kindly review the code and let me know if any changes needed.
Also I am feeling confident as I have implemented all on my own. Thanks to you for that Naman

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant