Skip to Content

Emulating XSJS service like Restful Api?

I have a UI5 frontend which calls a xsjs service and passes appropriate parameters to call specific functions from my xsjs service. This xsjs service brings the requested data by invoking the appropriate function. So for example my app url is always `https://..../index.html` as there are no routes and data is loaded from my xsjs by invoking appropriate functions. How can this xsjs service can be transformed into a restful API: eg: `https://...../session` will provide me info about the session. Right now the session info is retrieved from a single xsjs service eg: completeservice.xsjs by invoking appropriate function that returns the session info. Do I need to make separate xsjs service for each url? eg: for session => uri `https://.../session` => call `session.xsjs` present in session folder to get the session info. Or is there other appropriate way to achieve this.

Add comment
10|10000 characters needed characters exceeded

  • Get RSS Feed

0 Answers