Hi, I think the original issue is because GET method has been used instead of POST. Regarding logout issue, I think it is not implemented at the moment. Might have to track this. @Imesh: any thoughts?
On Thursday, 21 July 2016, Imesh Gunaratne <im...@apache.org> wrote: > Hi Alonso, > > On Tue, Jul 19, 2016 at 7:30 PM, Iago Alonso Alonso <infia...@udc.es > <javascript:_e(%7B%7D,'cvml','infia...@udc.es');>> wrote: > >> I'm trying to send orders to Apache Stratos via API REST but I'm unnable >> to make it works. >> > > Can you please explain what you are trying to achieve? > > It would be better to share the request message, response message and the > server side log (as mentioned by Isuru). > > Thanks > >> >> According to the Deploy Doc ( >> https://cwiki.apache.org/confluence/display/STRATOS/4.1.x+Deploying+an+Application+via+REST+API) >> and the Undeploy Doc ( >> https://cwiki.apache.org/confluence/display/STRATOS/4.1.x+Undeploying+an+Application+via+REST+API) >> you can do the process via API REST. When I try to send the orders I'm >> getting an 500 ERROR as response. >> >> If I go to .....:9443/console/ I can do the both procces with the same >> credentials that I send on the code. For example, to deploy process: >> >> policy = form.cleaned_data['Application Policy ID:'] >> applicationID = form.cleaned_data['Application ID:'] >> headers = {'Content-Type': 'application/json'} >> deployApp = apacheStratosAPI + applications + '/' + applicationID + '/' + >> deploy + '/' + policy >> req = requests.get(deployApp, headers=headers, >> auth=HTTPBasicAuth(request.session['stratosUser'], >> request.session['stratosPass']), verify=False) >> >> Where apacheStratosAPI, applications, deploy are constants to use in >> other calls. >> >> So, why I can do it via web console and nor with the API REST calls? >> >> Regards. >> > > > > -- > Imesh Gunaratne > > Software Architect, WSO2 > Committer & PMC Member, Apache Stratos > -- Akila Ravihansa Perera WSO2 Inc.; http://wso2.com/ Blog: http://ravihansa3000.blogspot.com