camel-users mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From Claus Ibsen <claus.ib...@gmail.com>
Subject Re: REST DSL - including documents
Date Fri, 23 Jan 2015 10:04:47 GMT
Hi

There is a JIRA ticket afair about making it easier to let camel-jetty
be used for serving static files. And there is a 3rd party component
that does that. Not sure if it has been donated to Apache yet, but
should be some details in that jira ticket.

If using jetty you can also use the jetty api to add a handler to
service static files.

On Fri, Jan 23, 2015 at 9:52 AM, Tim Dudgeon <tdudgeon.ml@gmail.com> wrote:
> I don't think so. If I understand correctly swagger automatically generates
> documentation on a REST API.
> Though that might well be useful, its not what I'm after.
> I'm wanting to add additional pages - hand crafted ones, not automagically
> generated.
> Essentially I'm wanting to be able to serve up pages without setting up a
> full blown web server.
>
> Tim
>
>
>
> On 23/01/2015 01:33, Anton Hughes wrote:
>>
>> On Fri, Jan 23, 2015 at 6:58 AM, Tim Dudgeon <tdudgeon.ml@gmail.com>
>> wrote:
>>
>>> I'm successfully using REST DSL to serve up some simple services and want
>>> to include some simple HTML docs to describe and illustrate the services
>>> provided and prefer to keep this as
>>> simple as possible.
>>> I just have a process started by a Main class that starts a camel context
>>> with some routes exposed through the REST DSL. It seems to work fine with
>>> restlet and jetty.
>>> Now I want to include some HTML docs.
>>> I suppose I could use the DSL to define a URL that returned some text
>>> that
>>> was the HTML, but there must a be a better way such as defining a path
>>> where restlet/jetty/whatever would look for html docs.
>>>
>> Hi Tim
>>
>> It sounds like you want Swagger. See http://camel.apache.org/swagger.html
>> and http://swagger.io/.
>>
>



-- 
Claus Ibsen
-----------------
Red Hat, Inc.
Email: cibsen@redhat.com
Twitter: davsclaus
Blog: http://davsclaus.com
Author of Camel in Action: http://www.manning.com/ibsen
hawtio: http://hawt.io/
fabric8: http://fabric8.io/

Mime
View raw message