I would like to add a custom function in redash to make an api call from the visualization. I just need to call a function or URL in redash and return an array back. Can anyone clarify which file I need to edit to add a function inorder to receive the api call?
This site is in read only mode. Please continue to browse, but replying, likes,
and other actions are disabled for now.
They’re in the handlers
folder. You can add it to api.py
.
1 Like
I have added it to api.py and I have created a class. But it requires to be logged in in order to make the call to the endpoint. Is there any way I can remove login check for my custom added API?
I think all the endpoints in api.py
require authentication. You’d need to add your new endpoint elsewhere if you want to bypass authentication. Probably a good idea to read through the repo to see how the routing works before proceeding. There are some endpoints that are already available without authentication (like the password reset and event invitation endpoints). Maybe you use them as a guide?