How to create back-end for JS portletHow to create back-end for JS portlethttps://liferay.dev/en/c/message_boards/find_thread?p_l_id=119785333&threadId=1193208842024-03-28T22:42:18Z2024-03-28T22:42:18ZHow to create back-end for JS portletTomáš Plachýhttps://liferay.dev/en/c/message_boards/find_message?p_l_id=119785333&messageId=1193208832020-06-05T12:34:33Z2020-06-05T12:34:33ZHi, what is the "correct" approach, for devoloping back-end for JS portlet?<br />We are currently working with Liferay 7.1 GA4. I installed Liferay JS Portlet Extender and created porltet using Vue. So far everything seems to work just fine. Now I need to to create some kind of REST service on Liferay. And that is where I am hitting the wall.I tried JAX-RS service, this i can deploy and call if I disable authentication. But it's only js, so no safe storing of basic auth or secret for oauth client credentials. We have large number of portlets and using oauth and asking user to aprove applications is nonsense. So I tried to use portalSession, but no luck there. There are some hints on forum, but no final example/steps to follow or I didn't find them.<br />My next step was to try Service Builder. But Service Builder automaticaly generates persistance layer and we don't need that. Our applications has their own databases on separate server from Liferay database. So I tried, according some post on forum, to create service with empy entity. Code looks ok, but I have to manualy update exports and server throws error. Probably because he expects some kind of persistance and tables to be there. But this let me to this question. I am just blindly trying everything in hope, that something will work.<br />We are working with Liferay users, organizations, custom fields, etc in our appliaction. For that reason we want to create back-end on Liferay and not on standalone server.<br /><br />Can somebody push me in the right di