Hi Marc,<div><br></div><div>Header based routing. Putting the value in the header is straight forward.</div><div><br></div><div>Regards,</div><div>Michael Chester</div><div><br></div><div><br><br>On Wednesday, March 18, 2015, Marc Savy <<a href="mailto:marc.savy@redhat.com">marc.savy@redhat.com</a>> wrote:<br><blockquote class="gmail_quote" style="margin:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex">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.<br>
<br>
The use case I was talking about is simply putting values into headers, it doesn't change the URI format or anything like that.<br>
<br>
On 17/03/2015 13:57, Marc Savy wrote:<br>
> Hi Michael,<br>
><br>
> It just happens that I've been working on a very simple plug-in which<br>
> may do what you want.<br>
><br>
> Please check out: <a href="https://issues.jboss.org/browse/APIMAN-339" target="_blank">https://issues.jboss.org/browse/APIMAN-339</a> and look at<br>
> the last line in particular.<br>
><br>
> For the initial version it'd just be a simple list of fields you can<br>
> access implemented very basically, but in the future we could make it a<br>
> bit more sophisticated.<br>
><br>
> Regards,<br>
> Marc<br>
> On 16/03/2015 19:17, Michael Chester wrote:<br>
> > Hi Eric,<br>
> ><br>
> > Thank you. I will do 1 and have a look at doing 3.<br>
> ><br>
> > Regards,<br>
> > Michael Chester<br>
> ><br>
> ><br>
> > On Monday, March 16, 2015, Eric Wittmann <<a href="javascript:;" onclick="_e(event, 'cvml', 'eric.wittmann@redhat.com')">eric.wittmann@redhat.com</a><br>
> > <mailto:<a href="javascript:;" onclick="_e(event, 'cvml', 'eric.wittmann@redhat.com')">eric.wittmann@redhat.com</a>>> wrote:<br>
> ><br>
> > Hi Michael.<br>
> ><br>
> > Thanks for your interest. :) It would be a relatively easy change<br>
> > to allow this (although currently it's not supported out of the<br>
> > box). You have a couple of options including:<br>
> ><br>
> > 1) Create a feature request in JIRA for us to add this feature<br>
> > (<a href="https://issues.jboss.org/__browse/APIMAN" target="_blank">https://issues.jboss.org/__browse/APIMAN</a><br>
> > <<a href="https://issues.jboss.org/browse/APIMAN" target="_blank">https://issues.jboss.org/browse/APIMAN</a>>)<br>
> ><br>
> > 2) Create your own custom version of the API Gateway (not as hard as<br>
> > it sounds!)<br>
> ><br>
> > 3) Contribute a patch that adds support for this (Starting point<br>
> > here:<br>
> > <a href="https://github.com/apiman/__apiman/blob/master/gateway/__platforms/servlet/src/main/__java/io/apiman/gateway/__platforms/servlet/__GatewayServlet.java#L264" target="_blank">https://github.com/apiman/__apiman/blob/master/gateway/__platforms/servlet/src/main/__java/io/apiman/gateway/__platforms/servlet/__GatewayServlet.java#L264</a><br>
> > <<a href="https://github.com/apiman/apiman/blob/master/gateway/platforms/servlet/src/main/java/io/apiman/gateway/platforms/servlet/GatewayServlet.java#L264" target="_blank">https://github.com/apiman/apiman/blob/master/gateway/platforms/servlet/src/main/java/io/apiman/gateway/platforms/servlet/GatewayServlet.java#L264</a>>)<br>
> ><br>
> > -Eric<br>
> ><br>
> > On 3/15/2015 3:20 AM, Michael Chester wrote:<br>
> ><br>
> > Hi,<br>
> ><br>
> > Currently APIman inserts the version into the URL. We would like<br>
> > to use<br>
> > a header instead. Is it possible to support this?<br>
> ><br>
> > Regards,<br>
> > Michael Chester<br>
> ><br>
> ><br>
> > _________________________________________________<br>
> > Apiman-user mailing list<br>
> > <a href="javascript:;" onclick="_e(event, 'cvml', 'Apiman-user@lists.jboss.org')">Apiman-user@lists.jboss.org</a><br>
> > <a href="https://lists.jboss.org/__mailman/listinfo/apiman-user" target="_blank">https://lists.jboss.org/__mailman/listinfo/apiman-user</a><br>
> > <<a href="https://lists.jboss.org/mailman/listinfo/apiman-user" target="_blank">https://lists.jboss.org/mailman/listinfo/apiman-user</a>><br>
> ><br>
> ><br>
> ><br>
> > _______________________________________________<br>
> > Apiman-user mailing list<br>
> > <a href="javascript:;" onclick="_e(event, 'cvml', 'Apiman-user@lists.jboss.org')">Apiman-user@lists.jboss.org</a><br>
> > <a href="https://lists.jboss.org/mailman/listinfo/apiman-user" target="_blank">https://lists.jboss.org/mailman/listinfo/apiman-user</a><br>
> ><br>
><br>
> _______________________________________________<br>
> Apiman-user mailing list<br>
> <a href="javascript:;" onclick="_e(event, 'cvml', 'Apiman-user@lists.jboss.org')">Apiman-user@lists.jboss.org</a><br>
> <a href="https://lists.jboss.org/mailman/listinfo/apiman-user" target="_blank">https://lists.jboss.org/mailman/listinfo/apiman-user</a><br>
><br>
<br>
_______________________________________________<br>
Apiman-user mailing list<br>
<a href="javascript:;" onclick="_e(event, 'cvml', 'Apiman-user@lists.jboss.org')">Apiman-user@lists.jboss.org</a><br>
<a href="https://lists.jboss.org/mailman/listinfo/apiman-user" target="_blank">https://lists.jboss.org/mailman/listinfo/apiman-user</a><br>
</blockquote></div>