APIMan support for HATEOAS
by Ashish Patel
Hi,
Has anyone tried exposing APIs having HATEOAS - 'Hypertext As The Engine Of Application State' through APIMan, can you please suggest how below two scenarios are handled ?
1) How to register URLs like "/transaction/{serviceRequestNo}/save , "/transaction/{transactionId}/{transactionType} ..etc ?
2) GET response JSON returned by a server to a client having reference to APIGateway URLs and not actual servers' URL.
In case, if I am not clear enough, please refer https://dzone.com/articles/api-gateway-support-hypertext (very old article - states what is requested).
Thanks & Regards,
Ashish Patel
6 years, 10 months
Apiman returning only a single set-cookie header in response
by Stephen Henrie
Hi all,
I have a service that needs to return multiple set-cookie headers back to
the requesting browser, but I am only seeing one set-cookie header being
returned from apiman. Has anyone else tried this or know of any issues
returning multiple headers of the same name but with different values?
This multiple set-cookie headers in the response scenario is commonly
supported by web servers and browsers.
Thanks in advance.
Stephen
6 years, 10 months
Updated a bunch of Apiman UI dependencies on master -- testers appreciated!
by Marc Savy
Hi All,
After battling with the JS ecosystem's dep nightmare for much of
today, I've managed to get update several UI dependencies on master --
things *seem* to be working as anticipated (after juggling a few
incompatibilities around).
This was necessary because some deps are quite significantly outdated
and we need to move to more modern ones to ensure maintainability,
security, etc.
However, there's still a high risk of breakage, so if anyone can try
things out it would be greatly appreciated.
Quick Instructions:
1. Check out the main apiman repo.
2. Run Apiman in your usual way.
3. cd to manager/ui/war
4. yarn install
4.5 you may need to modify apiman/config.js for your setup
5. ./node_modules/gulp/bin/gulp.js
6. Navigate to http://localhost:2772
Regards,
Marc
6 years, 10 months
APIManager Prod issue help required
by Ashish Patel
Hi,
Issue help required: We are using APIMan 1.2.7 in production with Wildfly 10.
In APIManager UI, I can see all API details, however whenever I click on Endpoin, I get below error. Even when I click on APIManager -> ClientApp -> click on APIs, it breaks with 500 page error. Any help on this is highly appreciated.
io.apiman.manager.api.rest.contract.exceptions.SystemErrorException: java.lang.RuntimeException: Failed to get the API endpoint: 502
at io.apiman.manager.api.rest.impl.OrganizationResourceImpl.getApiVersionEndpointInfo(OrganizationResourceImpl.java:1937)
at io.apiman.manager.api.rest.impl.OrganizationResourceImpl$Proxy$_$$_WeldClientProxy.getApiVersionEndpointInfo(Unknown Source)
at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
at sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:62)
at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:43)
at java.lang.reflect.Method.invoke(Method.java:498)
at org.jboss.resteasy.core.MethodInjectorImpl.invoke(MethodInjectorImpl.java:139)
at org.jboss.resteasy.core.ResourceMethodInvoker.invokeOnTarget(ResourceMethodInvoker.java:295)
at org.jboss.resteasy.core.ResourceMethodInvoker.invoke(ResourceMethodInvok
....
Caused by: java.lang.RuntimeException: Failed to get the API endpoint: 502
at io.apiman.manager.api.gateway.rest.GatewayClient.getApiEndpoint(GatewayClient.java:120)
at io.apiman.manager.api.gateway.rest.RestGatewayLink.getApiEndpoint(RestGatewayLink.java:156)
Thanks & Regards,
Ashish Patel
6 years, 10 months
Maven 3.5.0 causing snapshot metadata corruption
by Marc Savy
Maven 3.5.0 users deploying snapshots beware: I hit this bug earlier
this week - https://issues.sonatype.org/browse/OSSRH-37292 In short,
the metadata produced is incorrect which may result in unresolvable
snapshot deps.
If you're using Maven 3.5.0 for your Apiman-related projects and
experiencing issues (such as unexpected 404s after deploying, outdated
snapshots, etc), then try upgrading to 3.5.3 which seems to work.
Regards,
Marc
6 years, 10 months
Apiman X-Fowarded-For on Simple Header Policy
by Renato Barros
Hi folks,
I'd like to know if there is some way to add the Client remote IP on my
Request Header from API Man.
I need to *add a Simple Header Policy with a "X-Forwarded-For" containing
the client remote ip*.
My backend is getting the APIMan IP as remote client, but what I need get
to client IP.
6 years, 10 months