@RequestMapping(value="/api/categories") @RestController public class CategoryController extends Object
Constructor and Description |
---|
CategoryController() |
Modifier and Type | Method and Description |
---|---|
org.springframework.http.ResponseEntity<Map<String,Object>> |
categoryList(Integer startIndex,
Integer pageSize,
String sorting) |
org.springframework.http.ResponseEntity<Map<String,Object>> |
createCategory(Category category) |
org.springframework.http.ResponseEntity<Map<String,Object>> |
deleteCategory(Category category) |
void |
init() |
org.springframework.http.ResponseEntity<Map<String,Object>> |
updateCategory(Category category) |
@PostConstruct public void init()
@PostMapping(value="/list") public org.springframework.http.ResponseEntity<Map<String,Object>> categoryList(@RequestParam(value="jtStartIndex",required=false) Integer startIndex, @RequestParam(value="jtPageSize",required=false) Integer pageSize, @RequestParam(value="jtSorting",required=false) String sorting)
@PostMapping(value="/create") public org.springframework.http.ResponseEntity<Map<String,Object>> createCategory(@RequestBody Category category)
@PostMapping(value="/update") public org.springframework.http.ResponseEntity<Map<String,Object>> updateCategory(@RequestBody Category category)
Copyright © 2016-2018 Apache Software Foundation. All Rights Reserved.
Apache Logging, Apache Log4j, Log4j, Apache, the Apache feather logo, the Apache Logging project logo, and the Apache Log4j logo are trademarks of The Apache Software Foundation.