Skip to content

Commit

Permalink
[strimzi#434] docs: edits after review & changelog
Browse files Browse the repository at this point in the history
Signed-off-by: ilkerkocatepe <[email protected]>
  • Loading branch information
ilkerkocatepe committed Nov 19, 2024
1 parent 11c8a7e commit e591f0d
Show file tree
Hide file tree
Showing 5 changed files with 9 additions and 16 deletions.
Original file line number Diff line number Diff line change
@@ -1 +1 @@
444170efeb26c6a819d27e54c5571469b44678895d9090c6c09d0de6318bcf6d
cf88d8909114896517ba4027596382126bca594d55dd9a924330232407e603b2
7 changes: 2 additions & 5 deletions documentation/book/api/index.adoc
Original file line number Diff line number Diff line change
Expand Up @@ -2298,7 +2298,7 @@ endif::internal-generation[]

===== Description

Creates a topic with given name, partitions count and replication factor.
Creates a topic with given name, partitions count, and replication factor.


// markup not found, no include::{specDir}admin/topics/POST/spec.adoc[opts=optional]
Expand All @@ -2315,7 +2315,7 @@ Creates a topic with given name, partitions count and replication factor.
|Name| Description| Required| Default| Pattern

| NewTopic
| Creates a topic with given name, partitions count and replication factor. <<NewTopic>>
| Creates a topic with given name, partitions count, and replication factor. <<NewTopic>>
| X
|
|
Expand All @@ -2333,9 +2333,6 @@ Creates a topic with given name, partitions count and replication factor.

-

===== Content Type

* application/vnd.kafka.v2+json

===== Responses

Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -180,7 +180,7 @@ public void doGetTopic(RoutingContext routingContext) {
}

/**
* Create a topic with described name, partitions count and replication factor in the body of the HTTP request
* Create a topic with described name, partitions count, and replication factor in the body of the HTTP request
*
* @param routingContext the routing context
*/
Expand Down
9 changes: 3 additions & 6 deletions src/main/resources/openapi.json
Original file line number Diff line number Diff line change
Expand Up @@ -758,10 +758,10 @@
"tags": [
"Topics"
],
"description": "Creates a topic with given name, partitions count and replication factor.",
"description": "Creates a topic with given name, partitions count, and replication factor.",
"operationId": "createTopic",
"requestBody": {
"description": "Creates a topic with given name, partitions count and replication factor.",
"description": "Creates a topic with given name, partitions count, and replication factor.",
"content": {
"application/vnd.kafka.json.v2+json": {
"schema": {
Expand All @@ -773,10 +773,7 @@
},
"responses": {
"201": {
"description": "Created",
"content": {
"application/vnd.kafka.v2+json": {}
}
"description": "Created"
}
}
}
Expand Down
5 changes: 2 additions & 3 deletions src/main/resources/openapiv2.json
Original file line number Diff line number Diff line change
Expand Up @@ -691,7 +691,7 @@
"tags": [
"Topics"
],
"description": "Creates a topic with given name, partitions count and replication factor.",
"description": "Creates a topic with given name, partitions count, and replication factor.",
"operationId": "createTopic",
"consumes": [
"application/vnd.kafka.v2+json"
Expand All @@ -711,8 +711,7 @@
],
"responses": {
"201": {
"description": "Created",
"schema": {}
"description": "Created"
}
}
}
Expand Down

0 comments on commit e591f0d

Please sign in to comment.