You are viewing a plain text version of this content. The canonical link for it is here.
Posted to notifications@superset.apache.org by GitBox <gi...@apache.org> on 2021/12/08 10:47:27 UTC

[GitHub] [superset] MamonovaMaria opened a new issue #17685: How to add a custom api?

MamonovaMaria opened a new issue #17685:
URL: https://github.com/apache/superset/issues/17685


   Hi!
   
   When I add a custom api (example to the dashboard class to superset\dashboards\api.py) and then write it to superset\constants.py in MODEL_VIEW_RW_METHOD_PERMISSION_MAP, I get a 404 error when accessing it.
   
   What needs to be done in order for my custom api to be noticed by the superset?


-- 
This is an automated message from the Apache Git Service.
To respond to the message, please log on to GitHub and use the
URL above to go to the specific comment.

To unsubscribe, e-mail: notifications-unsubscribe@superset.apache.org

For queries about this service, please contact Infrastructure at:
users@infra.apache.org



---------------------------------------------------------------------
To unsubscribe, e-mail: notifications-unsubscribe@superset.apache.org
For additional commands, e-mail: notifications-help@superset.apache.org


[GitHub] [superset] nytai commented on issue #17685: How to add a custom api?

Posted by GitBox <gi...@apache.org>.
nytai commented on issue #17685:
URL: https://github.com/apache/superset/issues/17685#issuecomment-996466974


   you need to "register" it. see https://github.com/apache/superset/blob/4beaa81de341b055116a2d853acb193820862715/superset/initialization/__init__.py#L206


-- 
This is an automated message from the Apache Git Service.
To respond to the message, please log on to GitHub and use the
URL above to go to the specific comment.

To unsubscribe, e-mail: notifications-unsubscribe@superset.apache.org

For queries about this service, please contact Infrastructure at:
users@infra.apache.org



---------------------------------------------------------------------
To unsubscribe, e-mail: notifications-unsubscribe@superset.apache.org
For additional commands, e-mail: notifications-help@superset.apache.org