@@ -170,6 +170,7 @@ <h1 class="title">Module <code>supertokens_python.recipe.dashboard.recipe</code>
170170 CREATE_EMAIL_PASSWORD_USER,
171171 CREATE_PASSWORDLESS_USER,
172172 UNLINK_USER,
173+ USERROLES_LIST_API,
173174 USERROLES_PERMISSIONS_API,
174175 USERROLES_REMOVE_PERMISSIONS_API,
175176 USERROLES_ROLE_API,
@@ -226,6 +227,18 @@ <h1 class="title">Module <code>supertokens_python.recipe.dashboard.recipe</code>
226227 DASHBOARD_API,
227228 False,
228229 ),
230+ APIHandled(
231+ NormalisedURLPath(get_api_path_with_dashboard_base("/roles")),
232+ "get",
233+ DASHBOARD_API,
234+ False,
235+ ),
236+ APIHandled(
237+ NormalisedURLPath(get_api_path_with_dashboard_base("/tenants")),
238+ "get",
239+ DASHBOARD_API,
240+ False,
241+ ),
229242 APIHandled(
230243 NormalisedURLPath(get_api_path_with_dashboard_base(SIGN_IN_API)),
231244 "post",
@@ -470,6 +483,12 @@ <h1 class="title">Module <code>supertokens_python.recipe.dashboard.recipe</code>
470483 USERROLES_REMOVE_PERMISSIONS_API,
471484 False,
472485 ),
486+ APIHandled(
487+ NormalisedURLPath(get_api_path_with_dashboard_base(USERROLES_LIST_API)),
488+ "get",
489+ USERROLES_LIST_API,
490+ False,
491+ ),
473492 APIHandled(
474493 NormalisedURLPath(get_api_path_with_dashboard_base(USERROLES_ROLE_API)),
475494 "put",
@@ -611,6 +630,8 @@ <h1 class="title">Module <code>supertokens_python.recipe.dashboard.recipe</code>
611630 api_function = create_passwordless_user
612631 elif request_id == UNLINK_USER:
613632 api_function = handle_user_unlink_get
633+ elif request_id == USERROLES_LIST_API:
634+ api_function = get_all_roles_api
614635 elif request_id == USERROLES_PERMISSIONS_API:
615636 api_function = get_permissions_for_role_api
616637 elif request_id == USERROLES_REMOVE_PERMISSIONS_API:
@@ -758,6 +779,18 @@ <h2 class="section-title" id="header-classes">Classes</h2>
758779 DASHBOARD_API,
759780 False,
760781 ),
782+ APIHandled(
783+ NormalisedURLPath(get_api_path_with_dashboard_base("/roles")),
784+ "get",
785+ DASHBOARD_API,
786+ False,
787+ ),
788+ APIHandled(
789+ NormalisedURLPath(get_api_path_with_dashboard_base("/tenants")),
790+ "get",
791+ DASHBOARD_API,
792+ False,
793+ ),
761794 APIHandled(
762795 NormalisedURLPath(get_api_path_with_dashboard_base(SIGN_IN_API)),
763796 "post",
@@ -1002,6 +1035,12 @@ <h2 class="section-title" id="header-classes">Classes</h2>
10021035 USERROLES_REMOVE_PERMISSIONS_API,
10031036 False,
10041037 ),
1038+ APIHandled(
1039+ NormalisedURLPath(get_api_path_with_dashboard_base(USERROLES_LIST_API)),
1040+ "get",
1041+ USERROLES_LIST_API,
1042+ False,
1043+ ),
10051044 APIHandled(
10061045 NormalisedURLPath(get_api_path_with_dashboard_base(USERROLES_ROLE_API)),
10071046 "put",
@@ -1143,6 +1182,8 @@ <h2 class="section-title" id="header-classes">Classes</h2>
11431182 api_function = create_passwordless_user
11441183 elif request_id == UNLINK_USER:
11451184 api_function = handle_user_unlink_get
1185+ elif request_id == USERROLES_LIST_API:
1186+ api_function = get_all_roles_api
11461187 elif request_id == USERROLES_PERMISSIONS_API:
11471188 api_function = get_permissions_for_role_api
11481189 elif request_id == USERROLES_REMOVE_PERMISSIONS_API:
@@ -1344,6 +1385,18 @@ <h3>Methods</h3>
13441385 DASHBOARD_API,
13451386 False,
13461387 ),
1388+ APIHandled(
1389+ NormalisedURLPath(get_api_path_with_dashboard_base("/roles")),
1390+ "get",
1391+ DASHBOARD_API,
1392+ False,
1393+ ),
1394+ APIHandled(
1395+ NormalisedURLPath(get_api_path_with_dashboard_base("/tenants")),
1396+ "get",
1397+ DASHBOARD_API,
1398+ False,
1399+ ),
13471400 APIHandled(
13481401 NormalisedURLPath(get_api_path_with_dashboard_base(SIGN_IN_API)),
13491402 "post",
@@ -1588,6 +1641,12 @@ <h3>Methods</h3>
15881641 USERROLES_REMOVE_PERMISSIONS_API,
15891642 False,
15901643 ),
1644+ APIHandled(
1645+ NormalisedURLPath(get_api_path_with_dashboard_base(USERROLES_LIST_API)),
1646+ "get",
1647+ USERROLES_LIST_API,
1648+ False,
1649+ ),
15911650 APIHandled(
15921651 NormalisedURLPath(get_api_path_with_dashboard_base(USERROLES_ROLE_API)),
15931652 "put",
@@ -1739,6 +1798,8 @@ <h3>Methods</h3>
17391798 api_function = create_passwordless_user
17401799 elif request_id == UNLINK_USER:
17411800 api_function = handle_user_unlink_get
1801+ elif request_id == USERROLES_LIST_API:
1802+ api_function = get_all_roles_api
17421803 elif request_id == USERROLES_PERMISSIONS_API:
17431804 api_function = get_permissions_for_role_api
17441805 elif request_id == USERROLES_REMOVE_PERMISSIONS_API:
0 commit comments