@RestController
@RequestMapping(value="/event-types")
public class EventTypeController
extends java.lang.Object
| Constructor and Description |
|---|
EventTypeController(EventTypeService eventTypeService,
FeatureToggleService featureToggleService,
EventTypeOptionsValidator eventTypeOptionsValidator) |
| Modifier and Type | Method and Description |
|---|---|
org.springframework.http.ResponseEntity<?> |
create(EventType eventType,
org.springframework.validation.Errors errors,
org.springframework.web.context.request.NativeWebRequest request) |
org.springframework.http.ResponseEntity<?> |
delete(java.lang.String eventTypeName,
org.springframework.web.context.request.NativeWebRequest request,
Client client) |
org.springframework.http.ResponseEntity<?> |
get(java.lang.String name,
org.springframework.web.context.request.NativeWebRequest request) |
org.springframework.http.ResponseEntity<?> |
list() |
org.springframework.http.ResponseEntity<?> |
update(java.lang.String name,
EventType eventType,
org.springframework.validation.Errors errors,
org.springframework.web.context.request.NativeWebRequest request,
Client client) |
@Autowired public EventTypeController(EventTypeService eventTypeService, FeatureToggleService featureToggleService, EventTypeOptionsValidator eventTypeOptionsValidator)
@RequestMapping(method=GET) public org.springframework.http.ResponseEntity<?> list()
@RequestMapping(method=POST)
public org.springframework.http.ResponseEntity<?> create(@RequestBody
EventType eventType,
org.springframework.validation.Errors errors,
org.springframework.web.context.request.NativeWebRequest request)
@RequestMapping(value="/{name:.+}",
method=DELETE)
public org.springframework.http.ResponseEntity<?> delete(@PathVariable(value="name")
java.lang.String eventTypeName,
org.springframework.web.context.request.NativeWebRequest request,
Client client)
@RequestMapping(value="/{name:.+}",
method=PUT)
public org.springframework.http.ResponseEntity<?> update(@PathVariable(value="name")
java.lang.String name,
@RequestBody
EventType eventType,
org.springframework.validation.Errors errors,
org.springframework.web.context.request.NativeWebRequest request,
Client client)
@RequestMapping(value="/{name:.+}",
method=GET)
public org.springframework.http.ResponseEntity<?> get(@PathVariable
java.lang.String name,
org.springframework.web.context.request.NativeWebRequest request)