You are viewing a plain text version of this content. The canonical link for it is here.
Posted to issues@camel.apache.org by "Zoran Regvart (JIRA)" <ji...@apache.org> on 2018/10/01 21:08:00 UTC
[jira] [Resolved] (CAMEL-12846) Allow customization of REST API
documentation Content-Type
[ https://issues.apache.org/jira/browse/CAMEL-12846?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel ]
Zoran Regvart resolved CAMEL-12846.
-----------------------------------
Resolution: Implemented
Two new API properties were added:
* api.specification.contentType.json
* api.specification.contentType.yaml
Both specifying the `Content-Type` when serving the OpenAPI specification in JSON or YAML respectively. The defaults remain the same as before this change, `application/json` and `text/yaml`.
> Allow customization of REST API documentation Content-Type
> ----------------------------------------------------------
>
> Key: CAMEL-12846
> URL: https://issues.apache.org/jira/browse/CAMEL-12846
> Project: Camel
> Issue Type: New Feature
> Components: camel-core, camel-rest-swagger
> Reporter: Zoran Regvart
> Assignee: Zoran Regvart
> Priority: Major
> Fix For: 2.23.0
>
>
> Seems that there is different interpretations of what correct type for serving OpenAPI/Swagger API specification should be. We're currently serving those as {{application/json}} and {{text/yaml}}. We should allow for customization of the response {{Content-Type}} header to help with any interoperability issues.
--
This message was sent by Atlassian JIRA
(v7.6.3#76005)