You are viewing a plain text version of this content. The canonical link for it is here.
Posted to commits@camel.apache.org by bu...@apache.org on 2017/01/04 09:20:08 UTC

svn commit: r1004110 - in /websites/production/camel/content: cache/main.pageCache swagger-java.html

Author: buildbot
Date: Wed Jan  4 09:20:08 2017
New Revision: 1004110

Log:
Production update by buildbot for camel

Modified:
    websites/production/camel/content/cache/main.pageCache
    websites/production/camel/content/swagger-java.html

Modified: websites/production/camel/content/cache/main.pageCache
==============================================================================
Binary files - no diff available.

Modified: websites/production/camel/content/swagger-java.html
==============================================================================
--- websites/production/camel/content/swagger-java.html (original)
+++ websites/production/camel/content/swagger-java.html Wed Jan  4 09:20:08 2017
@@ -186,7 +186,7 @@
     <url-pattern>/api-docs/*</url-pattern>
     <url-pattern>/rest/*</url-pattern>
   &lt;/filter-mapping&gt;]]></script>
-</div></div><p>The CorsFilter sets the following headers for all requests</p><ul><li>Access-Control-Allow-Origin = *</li><li>Access-Control-Allow-Methods =&#160;GET, HEAD, POST, PUT, DELETE, TRACE, OPTIONS, CONNECT, PATCH</li><li>Access-Control-Max-Age = 3600</li><li>Access-Control-Allow-Headers =&#160;Origin, Accept, X-Requested-With, Content-Type, Access-Control-Request-Method, Access-Control-Request-Headers</li></ul><p><span style="color: rgb(52,48,45);">Notice this is a very simple CORS filter. You may need to use a more sophisticated filter to set the header values differently for a given client. Or block certain clients etc.</span></p><h3 id="SwaggerJava-ContextIdListingenabled">ContextIdListing enabled</h3><p>When contextIdListing is enabled then its detecting all the running CamelContexts in the same JVM. These contexts are listed in the root path, eg `/api-docs` as a simple list of names in json format. To access the swagger documentation then the context-path must be appen
 ded with the Camel context id, such as `api-docs/myCamel`. The option&#160;apiContextIdPattern can be used to filter the names in this list.</p><h3 id="SwaggerJava-JSonorYaml">JSon or Yaml</h3><p><strong>Available as of Camel 2.17</strong></p><p>The camel-swagger-java module supports both JSon and Yaml out of the box. You can specify in the request url what you want returned by using /swagger.json or /swagger.yaml for either one. If none is specified then the HTTP Accept header is used to detect if json or yaml can be accepted. If either both is accepted or none was set as accepted then json is returned as the default format.</p><h3 id="SwaggerJava-Examples">Examples</h3><p>In the Apache Camel distribution we ship the&#160;<code>camel-example-swagger-cdi</code>&#160;and <code>camel-example-swagger-java</code>&#160;which demonstrates using this Swagger component.</p><div><span style="white-space: pre-wrap;"><br clear="none"></span></div></div>
+</div></div><p>The CorsFilter sets the following headers for all requests</p><ul><li>Access-Control-Allow-Origin = *</li><li>Access-Control-Allow-Methods =&#160;GET, HEAD, POST, PUT, DELETE, TRACE, OPTIONS, CONNECT, PATCH</li><li>Access-Control-Max-Age = 3600</li><li>Access-Control-Allow-Headers =&#160;Origin, Accept, X-Requested-With, Content-Type, Access-Control-Request-Method, Access-Control-Request-Headers</li></ul><p><span style="color: rgb(52,48,45);">Notice this is a very simple CORS filter. You may need to use a more sophisticated filter to set the header values differently for a given client. Or block certain clients etc.</span></p><h3 id="SwaggerJava-ContextIdListingenabled">ContextIdListing enabled</h3><p>When contextIdListing is enabled then its detecting all the running CamelContexts in the same JVM. These contexts are listed in the root path, eg `/api-docs` as a simple list of names in json format. To access the swagger documentation then the context-path must be appen
 ded with the Camel context id, such as `api-docs/myCamel`. The option&#160;apiContextIdPattern can be used to filter the names in this list.</p><h3 id="SwaggerJava-JSonorYaml">JSon or Yaml</h3><p><strong>Available as of Camel 2.17</strong></p><p>The camel-swagger-java module supports both JSon and Yaml out of the box. You can specify in the request url what you want returned by using /swagger.json or /swagger.yaml for either one. If none is specified then the HTTP Accept header is used to detect if json or yaml can be accepted. If either both is accepted or none was set as accepted then json is returned as the default format.</p><h3 id="SwaggerJava-Examples">Examples</h3><p>In the Apache Camel distribution we ship a number of Swagger examples which demonstrates using this Swagger component.</p><div><span style="white-space: pre-wrap;"><br clear="none"></span></div></div>
         </td>
         <td valign="top">
           <div class="navigation">