{"action":"opened","issue":{"url":"https://api.github.com/repos/confluentinc/kafka-rest/issues/109","labels_url":"https://api.github.com/repos/confluentinc/kafka-rest/issues/109/labels{/name}","comments_url":"https://api.github.com/repos/confluentinc/kafka-rest/issues/109/comments","events_url":"https://api.github.com/repos/confluentinc/kafka-rest/issues/109/events","html_url":"https://github.com/confluentinc/kafka-rest/issues/109","id":103283559,"number":109,"title":"Create a topic via API method","user":{"login":"ducas","id":193200,"avatar_url":"https://avatars.githubusercontent.com/u/193200?v=3","gravatar_id":"","url":"https://api.github.com/users/ducas","html_url":"https://github.com/ducas","followers_url":"https://api.github.com/users/ducas/followers","following_url":"https://api.github.com/users/ducas/following{/other_user}","gists_url":"https://api.github.com/users/ducas/gists{/gist_id}","starred_url":"https://api.github.com/users/ducas/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/ducas/subscriptions","organizations_url":"https://api.github.com/users/ducas/orgs","repos_url":"https://api.github.com/users/ducas/repos","events_url":"https://api.github.com/users/ducas/events{/privacy}","received_events_url":"https://api.github.com/users/ducas/received_events","type":"User","site_admin":false},"labels":[],"state":"open","locked":false,"assignee":null,"milestone":null,"comments":0,"created_at":"2015-08-26T14:31:26Z","updated_at":"2015-08-26T14:31:26Z","closed_at":null,"body":"As a client I would like to create a topic by making a request to the API so that I can specify partitions, replication factor and other configuration options.\r\n\r\n## For Example...\r\n### PUT /topics/(string: topic_name)\r\n_Parameters_\r\n* topic_name (string) - The topic to consume messages from.\r\n\r\n_Request JSON Object_\r\n* partitions (int) - The number of partitions the topic will have\r\n* replication_factor (int) - The replication factor of the topic\r\n* config (object) - The configuration to use for this topic (see [Kafka Topic Config](http://kafka.apache.org/documentation.html#topic-config) for all options)\r\n\r\n#### Example Request\r\n    PUT /topics/test_topic/ HTTP/1.1\r\n    Host: kafkaproxy.example.com\r\n    Accept: application/vnd.kafka.v1+json, application/vnd.kafka+json, application/json\r\n    {\r\n      \"partitions\": 40,\r\n      \"replication_factor\": 10,\r\n      \"config\": {\r\n        \"flush.ms\": 50\r\n      }\r\n    }"}}