Re: [Dev] [DEV][APIM][C5] Error occcured with Created status with Location Header.

2016-11-06 Thread Sanjeewa Malalgoda
Hi Thusitha, Thanks a lot for the workarounds. If we consider above solution, we cannot hard code URLs like this as we may have reverse proxy, load balancer etc fronting this application. And the workaround you suggested on github issue is violating contract we made with swagger definition. For the

Re: [Dev] [DEV][APIM][C5] Error occcured with Created status with Location Header.

2016-11-06 Thread Thusitha Thilina Dayaratne
Hi Tharindu, ATM, MSF4J doesn't support the Response.location(). We will fix this in the next release. Until that, as a workaround, you can use the set the status code and location header manually. e.g. Response.status(Response.Status.CREATED).header(HttpHeaders.LOCATION, "http://localhost:8080/

[Dev] [DEV][APIM][C5] Error occcured with Created status with Location Header.

2016-11-06 Thread Tharindu Dharmarathna
Hi All, We are going to implement API Creation Flow in API Manager C5 with msf4j 2.1.0. *Requirement* Need to send 201 (Created) with Location for the Created API resource. *Issue* When we implement this and test we came across with below exception. WARN {org.wso2.msf4j.internal.MSF4JMessage