Skip to content

Commit

Permalink
Updated OpenAPI specification and documentation
Browse files Browse the repository at this point in the history
Signed-off-by: Paolo Patierno <[email protected]>
  • Loading branch information
ppatierno committed Dec 23, 2024
1 parent 95a2c56 commit 5d87658
Show file tree
Hide file tree
Showing 2 changed files with 16 additions and 8 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -13,7 +13,7 @@ The Kafka Bridge OpenAPI specification is in JSON format.
You can find the OpenAPI JSON files in the `src/main/resources/` folder of the Kafka Bridge source download files.
The download files are available from the {ReleaseDownload}.

You can also use the xref:openapi[`GET /openapi` method] to retrieve the OpenAPI v2 specification in JSON format.
You can also use the xref:openapi[`GET /openapi` method] to retrieve the OpenAPI v3 specification in JSON format.

[role="_additional-resources"]
.Additional resources
Expand Down
22 changes: 15 additions & 7 deletions src/main/resources/openapi.json
Original file line number Diff line number Diff line change
Expand Up @@ -1415,29 +1415,37 @@
}
}
},
"description": "OpenAPI v2 specification in JSON format retrieved successfully."
"description": "OpenAPI v3 specification in JSON format retrieved successfully."
}
},
"operationId": "openapi",
"description": "Retrieves the OpenAPI v2 specification in JSON format."
"description": "Retrieves the OpenAPI v3 specification in JSON format."
}
},
"/openapi/v2": {
"get": {
"responses": {
"200": {
"410": {
"content": {
"application/json": {
"application/vnd.kafka.v2+json": {
"schema": {
"type": "string"
"$ref": "#/components/schemas/Error"
},
"examples": {
"response": {
"value": {
"error_code": 410,
"message": "OpenAPI v2 Swagger not supported."
}
}
}
}
},
"description": "OpenAPI v2 specification in JSON format retrieved successfully."
"description": "OpenAPI v2 Swagger not supported."
}
},
"operationId": "openapiv2",
"description": "Retrieves the OpenAPI v2 specification in JSON format."
"description": "OpenAPI v2 Swagger not supported."
}
},
"/openapi/v3": {
Expand Down

0 comments on commit 5d87658

Please sign in to comment.