@RestController
public class PartitionsController
extends java.lang.Object
| Constructor and Description |
|---|
PartitionsController(EventTypeRepository eventTypeRepository,
TopicRepository topicRepository) |
| Modifier and Type | Method and Description |
|---|---|
org.springframework.http.ResponseEntity<?> |
getPartition(java.lang.String eventTypeName,
java.lang.String partition,
org.springframework.web.context.request.NativeWebRequest request) |
org.springframework.http.ResponseEntity<?> |
listPartitions(java.lang.String eventTypeName,
org.springframework.web.context.request.NativeWebRequest request) |
@Autowired public PartitionsController(EventTypeRepository eventTypeRepository, TopicRepository topicRepository)
@RequestMapping(value="/event-types/{name}/partitions",
method=GET)
public org.springframework.http.ResponseEntity<?> listPartitions(@PathVariable(value="name")
java.lang.String eventTypeName,
org.springframework.web.context.request.NativeWebRequest request)
@RequestMapping(value="/event-types/{name}/partitions/{partition}",
method=GET)
public org.springframework.http.ResponseEntity<?> getPartition(@PathVariable(value="name")
java.lang.String eventTypeName,
@PathVariable(value="partition")
java.lang.String partition,
org.springframework.web.context.request.NativeWebRequest request)