Skip to content

Commit aaccbdc

Browse files
Merge pull request #82 from kinde-oss/fix/management-api-endpoints
fix: correct management API endpoint configurations and implementations
2 parents 67638a9 + 6f08d9f commit aaccbdc

File tree

3 files changed

+9
-9
lines changed

3 files changed

+9
-9
lines changed

.github/workflows/ci.yml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -5,7 +5,7 @@ on:
55
branches: [ "main", "staging" ]
66

77
push:
8-
branches: [ "main", "staging", "main_V2", "fix/openapi-management-client-import" ]
8+
branches: [ "main", "staging", "main_V2", "fix/management-api-endpoints" ]
99

1010
concurrency:
1111
group: ${{ github.head_ref || github.run_id }}

kinde_sdk/management/management_client.py

Lines changed: 7 additions & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -29,7 +29,7 @@ class ManagementClient:
2929
'users': {
3030
'list': ('GET', '/api/v1/users'),
3131
'get': ('GET', '/api/v1/users/{user_id}'),
32-
'create': ('POST', '/api/v1/users'),
32+
'create': ('POST', '/api/v1/user'),
3333
'update': ('PATCH', '/api/v1/users/{user_id}'),
3434
'delete': ('DELETE', '/api/v1/users/{user_id}'),
3535
},
@@ -38,7 +38,7 @@ class ManagementClient:
3838
'organizations': {
3939
'list': ('GET', '/api/v1/organizations'),
4040
'get': ('GET', '/api/v1/organizations/{org_code}'),
41-
'create': ('POST', '/api/v1/organizations'),
41+
'create': ('POST', '/api/v1/organization'),
4242
'update': ('PATCH', '/api/v1/organizations/{org_code}'),
4343
'delete': ('DELETE', '/api/v1/organizations/{org_code}'),
4444
},
@@ -47,7 +47,7 @@ class ManagementClient:
4747
'roles': {
4848
'list': ('GET', '/api/v1/roles'),
4949
'get': ('GET', '/api/v1/roles/{role_id}'),
50-
'create': ('POST', '/api/v1/roles'),
50+
'create': ('POST', '/api/v1/role'),
5151
'update': ('PATCH', '/api/v1/roles/{role_id}'),
5252
'delete': ('DELETE', '/api/v1/roles/{role_id}'),
5353
},
@@ -56,7 +56,7 @@ class ManagementClient:
5656
'permissions': {
5757
'list': ('GET', '/api/v1/permissions'),
5858
'get': ('GET', '/api/v1/permissions/{permission_id}'),
59-
'create': ('POST', '/api/v1/permissions'),
59+
'create': ('POST', '/api/v1/permission'),
6060
'update': ('PATCH', '/api/v1/permissions/{permission_id}'),
6161
'delete': ('DELETE', '/api/v1/permissions/{permission_id}'),
6262
},
@@ -65,7 +65,7 @@ class ManagementClient:
6565
'feature_flags': {
6666
'list': ('GET', '/api/v1/feature_flags'),
6767
'get': ('GET', '/api/v1/feature_flags/{feature_flag_key}'),
68-
'create': ('POST', '/api/v1/feature_flags'),
68+
'create': ('POST', '/api/v1/feature_flag'),
6969
'update': ('PATCH', '/api/v1/feature_flags/{feature_flag_key}'),
7070
'delete': ('DELETE', '/api/v1/feature_flags/{feature_flag_key}'),
7171
},
@@ -74,7 +74,7 @@ class ManagementClient:
7474
'connected_apps': {
7575
'list': ('GET', '/api/v1/applications'),
7676
'get': ('GET', '/api/v1/applications/{application_id}'),
77-
'create': ('POST', '/api/v1/applications'),
77+
'create': ('POST', '/api/v1/application'),
7878
'update': ('PATCH', '/api/v1/applications/{application_id}'),
7979
'delete': ('DELETE', '/api/v1/applications/{application_id}'),
8080
},
@@ -83,7 +83,7 @@ class ManagementClient:
8383
'api_applications': {
8484
'list': ('GET', '/api/v1/apis'),
8585
'get': ('GET', '/api/v1/apis/{api_id}'),
86-
'create': ('POST', '/api/v1/apis'),
86+
'create': ('POST', '/api/v1/api'),
8787
'update': ('PATCH', '/api/v1/apis/{api_id}'),
8888
'delete': ('DELETE', '/api/v1/apis/{api_id}'),
8989
},

pyproject.toml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
[project]
22
name = "kinde-python-sdk"
3-
version = "2.0.0-beta.16"
3+
version = "2.0.0-beta.17"
44
authors = [
55
{ name = "Kinde Engineering", email = "engineering@kinde.com" },
66
]

0 commit comments

Comments
 (0)