shzlw / poli

An easy-to-use BI server built for SQL lovers. Power data analysis in SQL and gain faster business insights.
https://shzlw.github.io/poli
MIT License
1.97k stars 330 forks source link

How to create new service API in Poli? #88

Open portalguru opened 3 years ago

portalguru commented 3 years ago

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?

shzlw commented 3 years ago

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.