@RestController @RequestMapping(value="/api/messages") public class MessageController extends AbstractOhfController
Modifier and Type | Field and Description |
---|---|
static String |
REST_URI |
BASE_PATH
Constructor and Description |
---|
MessageController() |
Modifier and Type | Method and Description |
---|---|
org.springframework.http.ResponseEntity<ActionResultRpc> |
action(Long id,
ActionRequestRpc actionRequestRpc)
Perform action on message identified by its id.
|
org.springframework.http.ResponseEntity<MessageRpc> |
detail(Long id)
Get detail of message identified by its id.
|
MessageCollectionWrapper |
list(MessageFilterRpc messageFilter)
List messages, by given filter.
|
getMessage, getMessageEN, getMessageSource, pageContentList
public static final String REST_URI
@GetMapping(produces={"application/xml","application/json"}) @ResponseStatus(value=OK) @ResponseBody public MessageCollectionWrapper list(MessageFilterRpc messageFilter)
messageFilter
- the filter to filter messages.@GetMapping(path="/{id}", produces={"application/xml","application/json"}) public org.springframework.http.ResponseEntity<MessageRpc> detail(@PathVariable Long id)
id
- the id of message.@PostMapping(path="/{id}/action", produces={"application/xml","application/json"}) public org.springframework.http.ResponseEntity<ActionResultRpc> action(@PathVariable Long id, @RequestBody ActionRequestRpc actionRequestRpc)
id
- the id of message to perform action on.actionRequestRpc
- the action type.Copyright © 2018 Pivotal Software, Inc.. All rights reserved.