You are viewing a plain text version of this content. The canonical link for it is here.
Posted to users@camel.apache.org by "fabrizio.spataro" <fa...@bizmate.it> on 2016/03/09 15:46:54 UTC

Limit swagger API

Hello,

To hide part of my API documentation, It could be nice to have a swagger
switch off mode.

I am thinking the following code:

<get uri="/user/{id}" produces="application/json">
    <swagger>off</swagger>
    <route>
       ....
       ....
       ....
    </route>
</get>

Best regards



--
View this message in context: http://camel.465427.n5.nabble.com/Limit-swagger-API-tp5778791.html
Sent from the Camel - Users mailing list archive at Nabble.com.

Re: Limit swagger API

Posted by camel_case <cs...@remedypartners.com>.
I have to show an OPTIONS route using rest dsl, which naturally shows up on
the api swagger ui.  The OPTIONS is the preflight for a POST.  I don't know
how to hide, if no other way, this would be most welcome.  We use routes and
annotations, and servlets, and no xml (no web.xml or other).



--
View this message in context: http://camel.465427.n5.nabble.com/Limit-swagger-API-tp5778791p5779056.html
Sent from the Camel - Users mailing list archive at Nabble.com.

Re: Limit swagger API

Posted by "fabrizio.spataro" <fa...@bizmate.it>.



--
View this message in context: http://camel.465427.n5.nabble.com/Limit-swagger-API-tp5778791p5778804.html
Sent from the Camel - Users mailing list archive at Nabble.com.

Re: Limit swagger API

Posted by fabryprog <fa...@bizmate.it>.
Done

https://issues.apache.org/jira/browse/CAMEL-9817



--
View this message in context: http://camel.465427.n5.nabble.com/Limit-swagger-API-tp5778791p5780491.html
Sent from the Camel - Users mailing list archive at Nabble.com.

Re: Limit swagger API

Posted by Claus Ibsen <cl...@gmail.com>.
Yeah that sounds like good use-cases.

Welcome to log a JIRA

On Wed, Mar 9, 2016 at 4:07 PM, Matt Sicker <bo...@gmail.com> wrote:
> Unreleased APIs, internal APIs, backwards compatibility APIs, maybe a
> couple other use cases.
>
> On 9 March 2016 at 08:58, Claus Ibsen <cl...@gmail.com> wrote:
>
>> Whats the use-case for this?
>>
>>
>>
>> On Wed, Mar 9, 2016 at 3:46 PM, fabrizio.spataro
>> <fa...@bizmate.it> wrote:
>> > Hello,
>> >
>> > To hide part of my API documentation, It could be nice to have a swagger
>> > switch off mode.
>> >
>> > I am thinking the following code:
>> >
>> > <get uri="/user/{id}" produces="application/json">
>> >     <swagger>off</swagger>
>> >     <route>
>> >        ....
>> >        ....
>> >        ....
>> >     </route>
>> > </get>
>> >
>> > Best regards
>> >
>> >
>> >
>> > --
>> > View this message in context:
>> http://camel.465427.n5.nabble.com/Limit-swagger-API-tp5778791.html
>> > Sent from the Camel - Users mailing list archive at Nabble.com.
>>
>>
>>
>> --
>> Claus Ibsen
>> -----------------
>> http://davsclaus.com @davsclaus
>> Camel in Action 2: https://www.manning.com/ibsen2
>>
>
>
>
> --
> Matt Sicker <bo...@gmail.com>



-- 
Claus Ibsen
-----------------
http://davsclaus.com @davsclaus
Camel in Action 2: https://www.manning.com/ibsen2

Re: Limit swagger API

Posted by Matt Sicker <bo...@gmail.com>.
Unreleased APIs, internal APIs, backwards compatibility APIs, maybe a
couple other use cases.

On 9 March 2016 at 08:58, Claus Ibsen <cl...@gmail.com> wrote:

> Whats the use-case for this?
>
>
>
> On Wed, Mar 9, 2016 at 3:46 PM, fabrizio.spataro
> <fa...@bizmate.it> wrote:
> > Hello,
> >
> > To hide part of my API documentation, It could be nice to have a swagger
> > switch off mode.
> >
> > I am thinking the following code:
> >
> > <get uri="/user/{id}" produces="application/json">
> >     <swagger>off</swagger>
> >     <route>
> >        ....
> >        ....
> >        ....
> >     </route>
> > </get>
> >
> > Best regards
> >
> >
> >
> > --
> > View this message in context:
> http://camel.465427.n5.nabble.com/Limit-swagger-API-tp5778791.html
> > Sent from the Camel - Users mailing list archive at Nabble.com.
>
>
>
> --
> Claus Ibsen
> -----------------
> http://davsclaus.com @davsclaus
> Camel in Action 2: https://www.manning.com/ibsen2
>



-- 
Matt Sicker <bo...@gmail.com>

Re: Limit swagger API

Posted by Claus Ibsen <cl...@gmail.com>.
Whats the use-case for this?



On Wed, Mar 9, 2016 at 3:46 PM, fabrizio.spataro
<fa...@bizmate.it> wrote:
> Hello,
>
> To hide part of my API documentation, It could be nice to have a swagger
> switch off mode.
>
> I am thinking the following code:
>
> <get uri="/user/{id}" produces="application/json">
>     <swagger>off</swagger>
>     <route>
>        ....
>        ....
>        ....
>     </route>
> </get>
>
> Best regards
>
>
>
> --
> View this message in context: http://camel.465427.n5.nabble.com/Limit-swagger-API-tp5778791.html
> Sent from the Camel - Users mailing list archive at Nabble.com.



-- 
Claus Ibsen
-----------------
http://davsclaus.com @davsclaus
Camel in Action 2: https://www.manning.com/ibsen2