Return-Path: X-Original-To: apmail-camel-commits-archive@www.apache.org Delivered-To: apmail-camel-commits-archive@www.apache.org Received: from mail.apache.org (hermes.apache.org [140.211.11.3]) by minotaur.apache.org (Postfix) with SMTP id E89261188E for ; Sun, 10 Aug 2014 11:18:16 +0000 (UTC) Received: (qmail 47276 invoked by uid 500); 10 Aug 2014 11:18:16 -0000 Delivered-To: apmail-camel-commits-archive@camel.apache.org Received: (qmail 47223 invoked by uid 500); 10 Aug 2014 11:18:16 -0000 Mailing-List: contact commits-help@camel.apache.org; run by ezmlm Precedence: bulk List-Help: List-Unsubscribe: List-Post: List-Id: Reply-To: dev@camel.apache.org Delivered-To: mailing list commits@camel.apache.org Received: (qmail 47210 invoked by uid 99); 10 Aug 2014 11:18:16 -0000 Received: from nike.apache.org (HELO nike.apache.org) (192.87.106.230) by apache.org (qpsmtpd/0.29) with ESMTP; Sun, 10 Aug 2014 11:18:16 +0000 X-ASF-Spam-Status: No, hits=-2000.0 required=5.0 tests=ALL_TRUSTED X-Spam-Check-By: apache.org Received: from [140.211.11.4] (HELO eris.apache.org) (140.211.11.4) by apache.org (qpsmtpd/0.29) with ESMTP; Sun, 10 Aug 2014 11:17:53 +0000 Received: from eris.apache.org (localhost [127.0.0.1]) by eris.apache.org (Postfix) with ESMTP id 0955223888FE for ; Sun, 10 Aug 2014 11:17:52 +0000 (UTC) Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit Subject: svn commit: r918936 - in /websites/production/camel/content: cache/main.pageCache swagger.html Date: Sun, 10 Aug 2014 11:17:51 -0000 To: commits@camel.apache.org From: buildbot@apache.org X-Mailer: svnmailer-1.0.9 Message-Id: <20140810111752.0955223888FE@eris.apache.org> X-Virus-Checked: Checked by ClamAV on apache.org Author: buildbot Date: Sun Aug 10 11:17:51 2014 New Revision: 918936 Log: Production update by buildbot for camel Modified: websites/production/camel/content/cache/main.pageCache websites/production/camel/content/swagger.html Modified: websites/production/camel/content/cache/main.pageCache ============================================================================== Binary files - no diff available. Modified: websites/production/camel/content/swagger.html ============================================================================== --- websites/production/camel/content/swagger.html (original) +++ websites/production/camel/content/swagger.html Sun Aug 10 11:17:51 2014 @@ -94,7 +94,7 @@ <!-- use the same version as your Camel core version --> </dependency> ]]> -

Using

To use this you need to configure the org.apache.camel.component.swagger.RestSwaggerApiDeclarationServlet in the WEB-INF/web.xml file as shown below:

Error formatting macro: snippet: java.lang.IndexOutOfBoundsException: Index: 20, Size: 20

Options

The org.apache.camel.component.swagger.RestSwaggerApiDeclarationServlet supports the following options which can be configured as context-param in the web.xml file.

Option

Type

Description

swagger.version StringSwagger spec version. Is default 1.2.
base.path

 

StringRequired: To setup the base path where the API is available
api.versionStringThe version of the api. Is default 0.0.0.
api.pathStringPath of the api
api.titleStringRequired. The title of the application.
api.descriptionStringRequired. A short description of the application.
api.termsOfServiceUrlStringA URL to the Terms of Service of the API.
api.contactStringAn email to be used for API-related correspondence.
api.licenseStringThe license name used for the API.
api.licenseUrlStringA URL to the license used for the API.

Examples

TODO: rest example

+

Using

To use this you need to configure the org.apache.camel.component.swagger.RestSwaggerApiDeclarationServlet in the WEB-INF/web.xml file as shown below:

Error formatting macro: snippet: java.lang.IndexOutOfBoundsException: Index: 20, Size: 20

Options

The org.apache.camel.component.swagger.RestSwaggerApiDeclarationServlet supports the following options which can be configured as context-param in the web.xml file.

Option

Type

Description

corsBooleanWhether to enable CORS. Is default false.
swagger.versionStringSwagger spec version. Is default 1.2.
base.path

 

StringRequired: To setup the base path where the REST services is available
api.versionStringThe version of the api. Is default 0.0.0.
api.pathStringTo setup the path where the API is available (eg /api-docs)
api.titleStringRequired. The title of the application.
api.descriptionStringRequired. A short description of the application.
api.termsOfServiceUrlStringA URL to the Terms of Service of the API.
api.contactStringAn email to be used for API-related correspondence.
api.licenseStringThe license name used for the API.
api.licenseUrlStringA URL to the license used for the API.

Examples

TODO: rest example