Questions Tagged With resthttps://answers.axonivy.com/tags/rest/?type=rss&user=Stelt0questions tagged <span class="tag">rest</span>enMon, 07 Oct 2019 09:40:24 -0400Complete Task from RESThttps://answers.axonivy.com/questions/4077/complete-task-from-rest<p>Hi Ivy Team,</p> <p>How to complete a task from REST service in Axon.Ivy ?</p> <p>So, far I saw that I can do .destroy() but it doesn`t feel the right, I believe that there will be some side effects </p> <p>or</p> <p>.setActivator(ivy.session.getSecurityContext().getSystemUser()) but this way I`m loosing the history who was the assignee of the task</p> <p>Any other options ?</p> <p>Maybe to do HTTP call to the end-point /TaskA.iot?taskId=7</p> <p>My goal is to build REST API that can manage the Axon.Ivy tasks from external system.</p> <p>Best Regards, Yordan</p>Stelt0Mon, 07 Oct 2019 09:40:24 -0400https://answers.axonivy.com/questions/4077/complete-task-from-restapijavaresttaskREST API and JSESSIONIDhttps://answers.axonivy.com/questions/4032/rest-api-and-jsessionid<p>Hi Ivy Team,</p> <p>Is there a way to get the JSESSIONID (or the whole cookie itself) of the logged in user ?</p> <p>I want to build a rest method which is authenticating the user. I need to return the cookie, so that next requests are authenticated</p> <p>BR, Yordan</p>Stelt0Mon, 30 Sep 2019 03:58:26 -0400https://answers.axonivy.com/questions/4032/rest-api-and-jsessionidauthenticationapijavarestAxon ivy mobile experiencehttps://answers.axonivy.com/questions/1946/axon-ivy-mobile-experience<p>Hello Ivy Team,</p> <p>I want to provide some mobile experience to my users.</p> <p>There are currently 3 approaches in my head:</p> <p>1.Native Mobile Client - Native iOS and/or Android app - no Web View - communicating to Ivy via HTTP - only data returned, no HTML - offline support</p> <p>2.Hybrid Mobile Client - Phonegap or Ionic HTML SPA hosted on the device (web view) - communicating to Ivy via HTTP - only data returned, no HTML - offline support</p> <p>3.Mobile optimized web view - OOTB provided by Ivy web technologies - JSF and PrimeFaces - no offline support</p> <p>Option 3 is the easiest to implement and release, but it has the worse UX. My biggest concern for option 1 and 2 is the security in terms of session management.</p> <p>Witch approach would Ivy Team recommend ? I saw in the documentation about the Offline User Dialogs, but they goes to option 1</p> <p>Best Regards, Yordan Yunchov</p>Stelt0Mon, 08 Aug 2016 10:26:03 -0400https://answers.axonivy.com/questions/1946/axon-ivy-mobile-experiencehtmluserdialogmobilerestREST service securityhttps://answers.axonivy.com/questions/1858/rest-service-security<p>Hello All,</p> <p>What is the security context of the new REST services ? How to get/check the user that is consuming them ?</p> <p>Thanks a lot !</p> <p>Best Regards, Yordan Yunchov</p>Stelt0Mon, 04 Jul 2016 13:22:42 -0400https://answers.axonivy.com/questions/1858/rest-service-securitysecurityrestAjax call from HTML Dialog to consume Web Service and REST Servicehttps://answers.axonivy.com/questions/1837/ajax-call-from-html-dialog-to-consume-web-service-and-rest-service<p>Hi All,</p> <p>I have the situation where from HTML dialog I need to make custom Ajax call to ivy Web Service in the same process. I`m wandering what would be the implications of this approach regarding the security context.</p> <p>The Ajax call will send a HTTP request with the cookie session of the currently logged user. Will this be enough for ivy engine to identify the user ?</p> <p>This question is also valid for the future release 6.2 when it comes to REST services.</p> <p>Best Regards, Yordan</p>Stelt0Thu, 23 Jun 2016 17:40:38 -0400https://answers.axonivy.com/questions/1837/ajax-call-from-html-dialog-to-consume-web-service-and-rest-servicehtmldialogsecurityajaxrest