@UserResource @RestController @RequestMapping(path="/api/v1/analytics/categories") public class BookingCategoryController extends BaseController
| Constructor and Description |
|---|
BookingCategoryController() |
| Modifier and Type | Method and Description |
|---|---|
org.springframework.http.HttpEntity<Void> |
createCategory(CustomCategoryEntity categoryEntity) |
org.springframework.http.HttpEntity<Void> |
createOrUpdateCustomCategories(List<CustomCategoryEntity> categoryEntities) |
org.springframework.http.HttpEntity<Void> |
createOrUpdateStaticCategories(List<CategoryEntity> categoryEntities) |
org.springframework.http.HttpEntity<Void> |
deleteCustomCategories(List<String> categoryIds) |
org.springframework.http.HttpEntity<Void> |
deleteCustomCategory(String categoryId) |
org.springframework.http.HttpEntity<Void> |
deleteStaticCategories(List<String> categoryIds) |
org.springframework.http.HttpEntity<Void> |
deleteStaticCategory(String categoryId) |
org.springframework.http.ResponseEntity<org.springframework.core.io.ByteArrayResource> |
getCustomCategories() |
org.springframework.http.ResponseEntity<org.springframework.core.io.ByteArrayResource> |
getStaticCategories() |
org.springframework.http.HttpEntity<Void> |
updateCategory(String categoryId,
CategoryEntity categoryEntity) |
org.springframework.http.HttpEntity<Void> |
updateCustomCategory(String categoryId,
CustomCategoryEntity categoryEntity) |
org.springframework.http.HttpEntity<?> |
uploadReplaceCustomCategories(org.springframework.web.multipart.MultipartFile catogoriesFile) |
org.springframework.http.HttpEntity<?> |
uploadReplaceStaticCategories(org.springframework.web.multipart.MultipartFile categoriesFile) |
loadBytesForWeb, loadBytesForWeb, resourceNotFound, returnDocument, returnDocument, userDataLocationHeader, userId, yamlObjectMapperpublic static final String BASE_PATH
@RequestMapping(method=POST) public org.springframework.http.HttpEntity<Void> createCategory(@RequestBody CustomCategoryEntity categoryEntity)
@RequestMapping(value="/custom",
method=GET)
@ResponseBody
public org.springframework.http.ResponseEntity<org.springframework.core.io.ByteArrayResource> getCustomCategories()
@RequestMapping(value="/static",
method=GET)
@ResponseBody
public org.springframework.http.ResponseEntity<org.springframework.core.io.ByteArrayResource> getStaticCategories()
@RequestMapping(value="/custom/{categoryId}",
method=PUT)
public org.springframework.http.HttpEntity<Void> updateCustomCategory(@PathVariable
String categoryId,
@RequestBody
CustomCategoryEntity categoryEntity)
@RequestMapping(value="/static/{categoryId}",
method=PUT)
public org.springframework.http.HttpEntity<Void> updateCategory(@PathVariable
String categoryId,
@RequestBody
CategoryEntity categoryEntity)
@RequestMapping(path="/custom",
method=PUT)
public org.springframework.http.HttpEntity<Void> createOrUpdateCustomCategories(@RequestBody
List<CustomCategoryEntity> categoryEntities)
@RequestMapping(path="/static",
method=PUT)
public org.springframework.http.HttpEntity<Void> createOrUpdateStaticCategories(@RequestBody
List<CategoryEntity> categoryEntities)
@RequestMapping(path="/custom/upload",
method=PUT,
consumes="application/octet-stream")
public org.springframework.http.HttpEntity<?> uploadReplaceCustomCategories(@RequestParam
org.springframework.web.multipart.MultipartFile catogoriesFile)
@RequestMapping(path="/static/upload",
method=PUT,
consumes="application/octet-stream")
public org.springframework.http.HttpEntity<?> uploadReplaceStaticCategories(@RequestParam
org.springframework.web.multipart.MultipartFile categoriesFile)
@RequestMapping(value="/custom/{categoryId}",
method=DELETE)
public org.springframework.http.HttpEntity<Void> deleteCustomCategory(@PathVariable
String categoryId)
@RequestMapping(value="/static/{categoryId}",
method=DELETE)
public org.springframework.http.HttpEntity<Void> deleteStaticCategory(@PathVariable
String categoryId)
@RequestMapping(value="/custom",
method=DELETE)
public org.springframework.http.HttpEntity<Void> deleteCustomCategories(@PathVariable
List<String> categoryIds)
Copyright © 2018. All rights reserved.