METRON-1395 Documentation missing for Produce a message to a Kafka topic Rest API endpoint (MohanDV via nickwallen) closes apache/metron#897
Project: http://git-wip-us.apache.org/repos/asf/metron/repo Commit: http://git-wip-us.apache.org/repos/asf/metron/commit/4bb6d836 Tree: http://git-wip-us.apache.org/repos/asf/metron/tree/4bb6d836 Diff: http://git-wip-us.apache.org/repos/asf/metron/diff/4bb6d836 Branch: refs/heads/feature/METRON-1211-extensions-parsers-gradual Commit: 4bb6d836a6e2dc0f7ab751ca1093aa95905723f6 Parents: 0cd4a83 Author: MohanDV <mohan...@gmail.com> Authored: Fri Jan 19 11:48:20 2018 -0500 Committer: nickallen <nickal...@apache.org> Committed: Fri Jan 19 11:48:20 2018 -0500 ---------------------------------------------------------------------- metron-interface/metron-rest/README.md | 12 +++++++++++- 1 file changed, 11 insertions(+), 1 deletion(-) ---------------------------------------------------------------------- http://git-wip-us.apache.org/repos/asf/metron/blob/4bb6d836/metron-interface/metron-rest/README.md ---------------------------------------------------------------------- diff --git a/metron-interface/metron-rest/README.md b/metron-interface/metron-rest/README.md index 02cd946..3d7d7a1 100644 --- a/metron-interface/metron-rest/README.md +++ b/metron-interface/metron-rest/README.md @@ -233,6 +233,7 @@ Request and Response objects are JSON formatted. The JSON schemas are available | [ `GET /api/v1/kafka/topic/{name}`](#get-apiv1kafkatopicname)| | [ `DELETE /api/v1/kafka/topic/{name}`](#delete-apiv1kafkatopicname)| | [ `GET /api/v1/kafka/topic/{name}/sample`](#get-apiv1kafkatopicnamesample)| +| [ `POST /api/v1/kafka/topic/{name}/produce`](#post-apiv1kafkatopicnameproduce)| | [ `GET /api/v1/metaalert/searchByAlert`](#get-apiv1metaalertsearchbyalert)| | [ `GET /api/v1/metaalert/create`](#get-apiv1metaalertcreate)| | [ `GET /api/v1/metaalert/add/alert`](#get-apiv1metaalertaddalert)| @@ -432,7 +433,16 @@ Request and Response objects are JSON formatted. The JSON schemas are available * Returns: * 200 - Returns sample message * 404 - Either Kafka topic is missing or contains no messages - + +### `POST /api/v1/kafka/topic/{name}/produce` + * Description: Produces a message to a Kafka topic + * Input: + * name - Kafka topic name + * message - message to be published + * Returns: + * 200 - Published + * 404 - Kafka topic is missing + ### `POST /api/v1/metaalert/searchByAlert` * Description: Get all meta alerts that contain an alert. * Input: