perf: k8s tree api (#9169)

Co-authored-by: feng <1304903146@qq.com>
This commit is contained in:
fit2bot
2022-12-07 23:55:56 +08:00
committed by GitHub
parent c14b97419d
commit e5afbd4118
6 changed files with 246 additions and 4 deletions

View File

@@ -34,9 +34,13 @@ user_permission_urlpatterns = [
path('<str:user>/nodes/children-with-assets/tree/',
api.UserPermedNodeChildrenWithAssetsAsTreeApi.as_view(),
name='user-node-children-with-assets-as-tree'),
path('<str:user>/nodes/children-with-k8s/tree/',
api.UserGrantedK8sAsTreeApi.as_view(),
name='user-nodes-children-with-k8s-as-tree'),
path('<str:user>/nodes-with-assets/tree/', api.UserPermedNodesWithAssetsAsTreeApi.as_view(),
name='user-nodes-with-assets-as-tree'),
# accounts
path('<str:user>/assets/<uuid:asset_id>/accounts/', api.UserPermedAssetAccountsApi.as_view(),
name='user-permed-asset-accounts'),