= Using the Kafka controller
:page-sidebar: apim_3_x_sidebar
:page-permalink: apim/3.x/apim_publishersme_using_kafka.html
:page-folder: apim/user-guide/publisher
:page-layout: apim3x

== Overview

This section describes the basic usage of the Kafka controller - producing and consuming messages.

=== Producing messages

Using the HTTP `POST` command to the example endpoint `https://apim-3-x-x-gateway.cloud.gravitee.io/kafka/messages`, you can send a message with the followig structure:

[source,json]
----
https://apim-3-13-x-gateway.cloud.gravitee.io/kafka/messages
{
  "messages": [
    {
      "key": "key",
      "value": {
        "val1": "hello"
      }
    }
  ]
}
----

=== Consuming messages

Using the HTTP `GET` command to the example endpoint `https://apim-3-x-x-gateway.cloud.gravitee.io/kafka/messages`, you can receive any available messages.
= Using the Kafka controller
:page-sidebar: apim_3_x_sidebar
:page-permalink: apim/3.x/apim_publisherguide_using_kafka.html
:page-folder: apim/user-guide/publisher
:page-layout: apim3x

== Overview

This section describes the basic usage of the Kafka controller - producing and consuming messages.

=== Producing messages

Using the HTTP `POST` command to the example endpoint `https://api.company.com/kafka/messages`, you can send a message with the followig structure:

[source,json]
----
https://api.company.com/kafka/messages
{
  "messages": [
    {
      "key": "key",
      "value": {
        "val1": "hello"
      }
    }
  ]
}
----

=== Consuming messages

Using the HTTP `GET` command to the example endpoint `https://api.company.com/kafka/messages`, you can receive any available messages.
Fix link and snippet url
Fix link and snippet url
