@RestController @RequestMapping(value="/catalog") public class CatalogController extends Object
| Constructor and Description |
|---|
CatalogController() |
| Modifier and Type | Method and Description |
|---|---|
org.springframework.http.ResponseEntity<Attribute> |
createAttribute(Attribute attribute) |
org.springframework.http.ResponseEntity<Category> |
createCategory(Category category) |
org.springframework.http.ResponseEntity<Event> |
createEvent(Event event) |
org.springframework.http.ResponseEntity<Product> |
createProduct(Product product) |
org.springframework.http.ResponseEntity<?> |
deleteAttribute(Long attributeId) |
org.springframework.http.ResponseEntity<?> |
deleteCategory(Long categoryId) |
org.springframework.http.ResponseEntity<?> |
deleteEvent(Long eventId) |
org.springframework.http.ResponseEntity<?> |
deleteProduct(Long productId) |
org.springframework.http.ResponseEntity<Attribute> |
getAttribute(String catalogId,
String name) |
org.springframework.http.ResponseEntity<List<Attribute>> |
getAttributes(String catalogId,
Integer startIndex,
Integer pageSize,
String sortColumn,
String sortDirection) |
org.springframework.http.ResponseEntity<List<Category>> |
getCategories(String catalogId,
Integer startIndex,
Integer pageSize,
String sortColumn,
String sortDirection) |
org.springframework.http.ResponseEntity<List<Event>> |
getEvents(String catalogId,
Integer startIndex,
Integer pageSize,
String sortColumn,
String sortDirection) |
org.springframework.http.ResponseEntity<List<Product>> |
getProducts(String catalogId,
Integer startIndex,
Integer pageSize,
String sortColumn,
String sortDirection) |
void |
init() |
org.springframework.http.ResponseEntity<Attribute> |
updateAttribute(Attribute attribute) |
org.springframework.http.ResponseEntity<Category> |
updateCategory(Category category) |
org.springframework.http.ResponseEntity<Event> |
updateEvent(Event event) |
org.springframework.http.ResponseEntity<Product> |
updateProduct(Product product) |
@PostConstruct public void init()
@GetMapping(value="{catalogId}/attributes")
public org.springframework.http.ResponseEntity<List<Attribute>> getAttributes(@PathVariable
String catalogId,
@RequestParam(value="startIndex",required=false)
Integer startIndex,
@RequestParam(value="pageSize",required=false)
Integer pageSize,
@RequestParam(value="sortCol",required=false)
String sortColumn,
@RequestParam(value="sortDir",required=false)
String sortDirection)
@GetMapping(value="{catalogId}/attribute/{name}")
public org.springframework.http.ResponseEntity<Attribute> getAttribute(@PathVariable
String catalogId,
@PathVariable
String name)
@PostMapping(value="/attribute",
consumes="application/vnd.apache.logging.log4j.audit+json; version=\"1.0\"",
produces="application/vnd.apache.logging.log4j.audit+json; version=\"1.0\"")
public org.springframework.http.ResponseEntity<Attribute> createAttribute(@RequestBody
Attribute attribute)
@PutMapping(value="/attribute",
consumes="application/vnd.apache.logging.log4j.audit+json; version=\"1.0\"",
produces="application/vnd.apache.logging.log4j.audit+json; version=\"1.0\"")
public org.springframework.http.ResponseEntity<Attribute> updateAttribute(@RequestBody
Attribute attribute)
@DeleteMapping(value="/attribute/{id}")
public org.springframework.http.ResponseEntity<?> deleteAttribute(@RequestParam(value="id")
Long attributeId)
@GetMapping(value="{catalogId}/events")
public org.springframework.http.ResponseEntity<List<Event>> getEvents(@PathVariable
String catalogId,
@RequestParam(value="startIndex",required=false)
Integer startIndex,
@RequestParam(value="pageSize",required=false)
Integer pageSize,
@RequestParam(value="sortCol",required=false)
String sortColumn,
@RequestParam(value="sortDir",required=false)
String sortDirection)
@PostMapping(value="/event",
consumes="application/vnd.apache.logging.log4j.audit+json; version=\"1.0\"",
produces="application/vnd.apache.logging.log4j.audit+json; version=\"1.0\"")
public org.springframework.http.ResponseEntity<Event> createEvent(@RequestBody
Event event)
@PutMapping(value="/event",
consumes="application/vnd.apache.logging.log4j.audit+json; version=\"1.0\"",
produces="application/vnd.apache.logging.log4j.audit+json; version=\"1.0\"")
public org.springframework.http.ResponseEntity<Event> updateEvent(@RequestBody
Event event)
@DeleteMapping(value="/event/{id}")
public org.springframework.http.ResponseEntity<?> deleteEvent(@RequestParam(value="id")
Long eventId)
@GetMapping(value="{catalogId}/products")
public org.springframework.http.ResponseEntity<List<Product>> getProducts(@PathVariable
String catalogId,
@RequestParam(value="startIndex",required=false)
Integer startIndex,
@RequestParam(value="pageSize",required=false)
Integer pageSize,
@RequestParam(value="sortCol",required=false)
String sortColumn,
@RequestParam(value="sortDir",required=false)
String sortDirection)
@PostMapping(value="/product",
consumes="application/vnd.apache.logging.log4j.audit+json; version=\"1.0\"",
produces="application/vnd.apache.logging.log4j.audit+json; version=\"1.0\"")
public org.springframework.http.ResponseEntity<Product> createProduct(@RequestBody
Product product)
@PutMapping(value="/product",
consumes="application/vnd.apache.logging.log4j.audit+json; version=\"1.0\"",
produces="application/vnd.apache.logging.log4j.audit+json; version=\"1.0\"")
public org.springframework.http.ResponseEntity<Product> updateProduct(@RequestBody
Product product)
@DeleteMapping(value="/product/{id}")
public org.springframework.http.ResponseEntity<?> deleteProduct(@RequestParam(value="id")
Long productId)
@GetMapping(value="{catalogId}/categories")
public org.springframework.http.ResponseEntity<List<Category>> getCategories(@PathVariable
String catalogId,
@RequestParam(value="startIndex",required=false)
Integer startIndex,
@RequestParam(value="pageSize",required=false)
Integer pageSize,
@RequestParam(value="sortCol",required=false)
String sortColumn,
@RequestParam(value="sortDir",required=false)
String sortDirection)
@PostMapping(value="/category",
consumes="application/vnd.apache.logging.log4j.audit+json; version=\"1.0\"",
produces="application/vnd.apache.logging.log4j.audit+json; version=\"1.0\"")
public org.springframework.http.ResponseEntity<Category> createCategory(@RequestBody
Category category)
@PutMapping(value="/category",
consumes="application/vnd.apache.logging.log4j.audit+json; version=\"1.0\"",
produces="application/vnd.apache.logging.log4j.audit+json; version=\"1.0\"")
public org.springframework.http.ResponseEntity<Category> updateCategory(@RequestBody
Category category)
@DeleteMapping(value="/category/{id}")
public org.springframework.http.ResponseEntity<?> deleteCategory(@RequestParam(value="id")
Long categoryId)
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.