Re: [Dev] [APIM] Timeout error when creating APIs using APIM 1.9.0 REST API

2015-09-12 Thread Nuwan Wimalasekara
Hi Udara, Please refer below links[1] and [2] [1] https://github.com/nuwanw/product-apim/blob/master/modules/integration/tests-common/integration-test-utils/src/main/java/org/wso2/am/integration/test/utils/clients/APIPublisherRestClient.java [2]

Re: [Dev] [APIM] Timeout error when creating APIs using APIM 1.9.0 REST API

2015-09-11 Thread Udara Liyanage
Hi Nuwan, Could you please point me to the test case location, me too is looking for a similar sample. On Fri, Sep 11, 2015 at 3:39 PM, Nuwan Wimalasekara wrote: > Hi Udara, > > In APIM integration test, HTTP endpoint is used to call the > RestAPI(Publisher and Store) and It

Re: [Dev] [APIM] Timeout error when creating APIs using APIM 1.9.0 REST API

2015-09-11 Thread Nuwan Wimalasekara
Hi Udara, In APIM integration test, HTTP endpoint is used to call the RestAPI(Publisher and Store) and It is working fine without any issue. This should work Thanks, Nuwanw On Fri, Sep 11, 2015 at 9:41 AM, Nuwan Dias wrote: > They run on HTTPS only. If you send an http

[Dev] [APIM] Timeout error when creating APIs using APIM 1.9.0 REST API

2015-09-10 Thread Udara Liyanage
Hi, I got this error while trying the sample Add API command mentioned in the doc . No backend error is displayed, any idea? $ curl -X POST -c cookies http://localhost:9763/publisher/site/blocks/user/login/ajax/login.jag -d

Re: [Dev] [APIM] Timeout error when creating APIs using APIM 1.9.0 REST API

2015-09-10 Thread Nuwan Dias
They run on HTTPS only. If you send an http request, it automatically redirects to https. On Fri, Sep 11, 2015 at 8:46 AM, Udara Liyanage wrote: > Hi, > > I could create APIs by changing to port 9443 and protocol to HTTPS. > However why does REST APIs runs on HTTP? > > curl -X

Re: [Dev] [APIM] Timeout error when creating APIs using APIM 1.9.0 REST API

2015-09-10 Thread Udara Liyanage
Hi, I still believe it is better the documentation sample to mention https if it is recommended. We can mention the http option if we wan so they have the choice. Further provided samples are not working for me when using http and 9763 On Fri, Sep 11, 2015 at 10:38 AM, Sanjeewa Malalgoda

Re: [Dev] [APIM] Timeout error when creating APIs using APIM 1.9.0 REST API

2015-09-10 Thread Udara Liyanage
Hi, I could create APIs by changing to port 9443 and protocol to HTTPS. However why does REST APIs runs on HTTP? curl -X POST -c cookies https://localhost:9443/publisher/site/blocks/user/login/ajax/login.jag -d 'action=login=admin=admin' -k curl -b cookies -k

Re: [Dev] [APIM] Timeout error when creating APIs using APIM 1.9.0 REST API

2015-09-10 Thread Udara Liyanage
Hi, It is not safe to send credentials in a http request (login), I think we need to update the docs to use https. On Fri, Sep 11, 2015 at 9:41 AM, Nuwan Dias wrote: > They run on HTTPS only. If you send an http request, it automatically > redirects to https. > > On Fri, Sep

Re: [Dev] [APIM] Timeout error when creating APIs using APIM 1.9.0 REST API

2015-09-10 Thread Sanjeewa Malalgoda
Its recommend to login over https. No need to specifically say it. Its well known thing and still users can choose http if need. Thanks, sanjeewa. On Fri, Sep 11, 2015 at 10:14 AM, Udara Liyanage wrote: > Hi, > > It is not safe to send credentials in a http request (login), I