[Apiman-user] Using a header for versioning

Marc Savy marc.savy at redhat.com
Tue Mar 17 11:01:38 EDT 2015


Hmm, I may have misinterpreted what you wanted. Are you talking about the routing of a request/response as a header, or just putting the value into the header.

The use case I was talking about is simply putting values into headers, it doesn't change the URI format or anything like that.

On 17/03/2015 13:57, Marc Savy wrote:
> Hi Michael,
>
> It just happens that I've been working on a very simple plug-in which
> may do what you want.
>
> Please check out: https://issues.jboss.org/browse/APIMAN-339 and look at
> the last line in particular.
>
> For the initial version it'd just be a simple list of fields you can
> access implemented very basically, but in the future we could make it a
> bit more sophisticated.
>
> Regards,
> Marc
> On 16/03/2015 19:17, Michael Chester wrote:
> > Hi Eric,
> >
> > Thank you. I will do 1 and have a look at doing 3.
> >
> > Regards,
> > Michael Chester
> >
> >
> > On Monday, March 16, 2015, Eric Wittmann <eric.wittmann at redhat.com
> > <mailto:eric.wittmann at redhat.com>> wrote:
> >
> >      Hi Michael.
> >
> >      Thanks for your interest.  :)  It would be a relatively easy change
> >      to allow this (although currently it's not supported out of the
> >      box).  You have a couple of options including:
> >
> >      1) Create a feature request in JIRA for us to add this feature
> >      (https://issues.jboss.org/__browse/APIMAN
> >      <https://issues.jboss.org/browse/APIMAN>)
> >
> >      2) Create your own custom version of the API Gateway (not as hard as
> >      it sounds!)
> >
> >      3) Contribute a patch that adds support for this (Starting point
> >      here:
> >      https://github.com/apiman/__apiman/blob/master/gateway/__platforms/servlet/src/main/__java/io/apiman/gateway/__platforms/servlet/__GatewayServlet.java#L264
> >      <https://github.com/apiman/apiman/blob/master/gateway/platforms/servlet/src/main/java/io/apiman/gateway/platforms/servlet/GatewayServlet.java#L264>)
> >
> >      -Eric
> >
> >      On 3/15/2015 3:20 AM, Michael Chester wrote:
> >
> >          Hi,
> >
> >          Currently APIman inserts the version into the URL. We would like
> >          to use
> >          a header instead.  Is it possible to support this?
> >
> >          Regards,
> >          Michael Chester
> >
> >
> >          _________________________________________________
> >          Apiman-user mailing list
> >          Apiman-user at lists.jboss.org
> >          https://lists.jboss.org/__mailman/listinfo/apiman-user
> >          <https://lists.jboss.org/mailman/listinfo/apiman-user>
> >
> >
> >
> > _______________________________________________
> > Apiman-user mailing list
> > Apiman-user at lists.jboss.org
> > https://lists.jboss.org/mailman/listinfo/apiman-user
> >
>
> _______________________________________________
> Apiman-user mailing list
> Apiman-user at lists.jboss.org
> https://lists.jboss.org/mailman/listinfo/apiman-user
>



More information about the Apiman-user mailing list