Skip to content

Commit

Permalink
feat: Add new url for roles master api keys (#3154)
Browse files Browse the repository at this point in the history
  • Loading branch information
novakzaballa authored Dec 21, 2023
1 parent d677f33 commit d770399
Showing 1 changed file with 10 additions and 1 deletion.
11 changes: 10 additions & 1 deletion api/organisations/urls.py
Original file line number Diff line number Diff line change
Expand Up @@ -102,6 +102,7 @@
RoleEnvironmentPermissionsViewSet,
RoleOrganisationPermissionViewSet,
RoleProjectPermissionsViewSet,
RolesbyMasterAPIPrefixViewSet,
RolesByGroupViewSet,
RolesByUserViewSet,
RoleViewSet,
Expand All @@ -112,11 +113,14 @@
parent_router=organisations_router, parent_prefix=r"users", lookup="user"
)

nested_api_key_roles_routes = routers.NestedSimpleRouter(
parent_router=organisations_router,
lookup="api_key",

nested_group_roles_routes = routers.NestedSimpleRouter(
parent_router=organisations_router, parent_prefix=r"groups", lookup="group"
)

organisations_router.register("roles", RoleViewSet, basename="organisation-roles")
nested_roles_router = routers.NestedSimpleRouter(
organisations_router, r"roles", lookup="role"
)
Expand All @@ -125,6 +129,10 @@
viewset=RolesByUserViewSet,
basename="role-users",
)
nested_api_key_roles_routes.register(
prefix="roles",
viewset=RolesbyMasterAPIPrefixViewSet,
basename="role-api-keys",
nested_group_roles_routes.register(
prefix="roles",
viewset=RolesByGroupViewSet,
Expand Down Expand Up @@ -155,6 +163,7 @@
url(r"^", include(organisations_router.urls)),
url(r"^", include(nested_roles_router.urls)),
url(r"^", include(nested_user_roles_routes.urls)),
url(r"^", include(nested_api_key_roles_routes.urls)),
url(r"^", include(nested_group_roles_routes.urls)),
]
)

3 comments on commit d770399

@vercel
Copy link

@vercel vercel bot commented on d770399 Dec 21, 2023

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

@vercel
Copy link

@vercel vercel bot commented on d770399 Dec 21, 2023

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Successfully deployed to the following URLs:

docs – ./docs

docs.flagsmith.com
docs-git-main-flagsmith.vercel.app
docs-flagsmith.vercel.app
docs.bullet-train.io

@vercel
Copy link

@vercel vercel bot commented on d770399 Dec 21, 2023

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Please sign in to comment.