[Apiman-user] Changing gateway endpoints

Christopher Stolte cstolte at ebsco.com
Tue May 3 10:48:49 EDT 2016


Upon further investigation, it seems that APIMAN dictates the URL structure for a managed endpoint. Namely:

 /ORG_ID/API_ID/VERSION/path/to/resource

I found this enforced, for example, in io.apiman.gateway.platforms.servlet.GatewayServlet#readRequest(request).

Is that true? Would I need to change that code (and probably other code too) in order to deploy to an arbitrary URL structure?
Also, I didn't have much luck using port 80 for SSL. (I tried changing the socket-binding in standalone.xml). What I really want is a managed endpoint like this:

https://mydomain.com/apis/arbitrary/endpoint/resource

I don't know if this is possible shy of code changes - has anyone else attempted this or similar? Thanks for any pointers or guidance!

________________________________________
From: Eric Wittmann <eric.wittmann at redhat.com>
Sent: Tuesday, April 19, 2016 10:32:26 AM
To: Christopher Stolte; apiman-user at lists.jboss.org
Subject: Re: [Apiman-user] Changing gateway endpoints

Assuming you are running apiman in WildFly or EAP (typical use) here is
what you need to do to change the apiman endpoint:

1) Modify the "jboss-web.xml" file inside the apiman-gateway.war file
(you can find it in WEB-INF).

2) Change the <context-root> to whatever you want it to be

3) Deploy the changed WAR to EAP/WildFly

4) Profit!

Here is the file in question within the apiman source code:

https://github.com/apiman/apiman/blob/master/gateway/platforms/war/wildfly8/gateway/src/main/webapp/WEB-INF/jboss-web.xml#L3

If you are running apiman on tomcat or jetty, you'll need to do
something different - so let me know. :)

-Eric

On 4/18/2016 3:33 PM, Christopher Stolte wrote:
> Hi All,
>
>
> I am trying to change the gateway endpoint so that managed endpoints for
> my services have a public URL under my control (for example maybe
> http://my.domain.com/apis).  I found this discussion:
>
>
> http://lists.jboss.org/pipermail/apiman-user/2015-October/000324.html
>
>
> Is changing the gateway WAR the only way to achieve this?  Maybe I'm
> missing a more obvious way to affect the managed endpoint?  If that is
> the way to go about it, can someone give me an idea of where in the code
> to do that?
>
>
> Thanks for any help!
>
>
>
> _______________________________________________
> 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