@RequestMapping(value="/api/products") @RestController public class ProductController extends Object
Constructor and Description |
---|
ProductController() |
Modifier and Type | Method and Description |
---|---|
org.springframework.http.ResponseEntity<Map<String,Object>> |
createProduct(Product product) |
org.springframework.http.ResponseEntity<Map<String,Object>> |
deleteProduct(Product product) |
void |
init() |
org.springframework.http.ResponseEntity<Map<String,Object>> |
productList(Integer startIndex,
Integer pageSize,
String sorting) |
org.springframework.http.ResponseEntity<Map<String,Object>> |
updateProduct(Product product) |
@PostConstruct public void init()
@PostMapping(value="/list") public org.springframework.http.ResponseEntity<Map<String,Object>> productList(@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>> createProduct(@RequestBody Product product)
@PostMapping(value="/update") public org.springframework.http.ResponseEntity<Map<String,Object>> updateProduct(@RequestBody Product product)
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.