Package com.malay.shortyshoe.controller
Class CategoryController
java.lang.Object
com.malay.shortyshoe.controller.CategoryController
-
Constructor Summary
-
Method Summary
Modifier and TypeMethodDescriptionorg.springframework.http.ResponseEntity<Category>
CreateCategory
(Category category) org.springframework.http.ResponseEntity<Void>
deleteCategory
(int id) getCategoryById
(int id) org.springframework.http.ResponseEntity<Category>
updateCategory
(int id, Category updatedCategory)
-
Constructor Details
-
CategoryController
public CategoryController()
-
-
Method Details
-
getAllCtegory
-
getCategoryById
-
CreateCategory
-
updateCategory
@PutMapping("/{id}") public org.springframework.http.ResponseEntity<Category> updateCategory(@PathVariable int id, @RequestBody Category updatedCategory) throws BusinessException - Throws:
BusinessException
-
deleteCategory
@DeleteMapping("/{id}") public org.springframework.http.ResponseEntity<Void> deleteCategory(@PathVariable int id) throws BusinessException - Throws:
BusinessException
-