poli icon indicating copy to clipboard operation
poli copied to clipboard

How to create new service API in Poli?

Open portalguru opened this issue 3 years ago • 1 comments

Hello, Is there any documentation available to guide us for creating a new service API in Poli? For example, I wanted to create a new service for download the Report as Excel file using Apache POI API. How can I achieve this? I also wanted to call the service APIs without using any authentication (hitting the service URL in different browser tab). Is it possible?

portalguru avatar May 08 '21 10:05 portalguru

Sorry, there is no doc for adding new code. There is a how to build chapter. The backend is a pretty standard spring boot application. You can create a custom rest controller and then expose the endpoint to for example, /export/pdf. The filter checks /ws/* for auth.

shzlw avatar May 08 '21 20:05 shzlw