Skip to content

Commit 1e00520

Browse files
authored
Merge pull request #41 from PTCInc/40-fixapi-base-url-for-server-user-groups-is-incorrect
fix(api): Corrected user groups base endpoint
2 parents 5c2dbd4 + bc83ebb commit 1e00520

2 files changed

Lines changed: 3 additions & 3 deletions

File tree

Kepware.Api.Test/ApiClient/ServerUserGroupTests.cs

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -14,7 +14,7 @@ namespace Kepware.Api.Test.ApiClient
1414
{
1515
public class ServerUserGroupTests : TestApiClientBase
1616
{
17-
private const string ENDPOINT_USER_GROUP = "/config/v1/admin/server_user_groups";
17+
private const string ENDPOINT_USER_GROUP = "/config/v1/admin/server_usergroups";
1818

1919
[Fact]
2020
public async Task GetServerUserGroupAsync_ShouldReturnServerUserGroup_WhenApiRespondsSuccessfully()

Kepware.Api/Model/Admin/ServerUserGroup.cs

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -11,7 +11,7 @@ namespace Kepware.Api.Model.Admin
1111
/// <summary>
1212
/// Represents a user group in Kepware, allowing management of permissions and access control.
1313
/// </summary>
14-
[Endpoint("/config/v1/admin/server_user_groups/{name}")]
14+
[Endpoint("/config/v1/admin/server_usergroups/{name}")]
1515
public class ServerUserGroup : NamedEntity
1616
{
1717
/// <summary>
@@ -289,7 +289,7 @@ public bool? BrowseNamespace
289289
#endregion
290290
}
291291

292-
[Endpoint("/config/v1/admin/server_user_groups")]
292+
[Endpoint("/config/v1/admin/server_usergroups")]
293293
public class ServerUserGroupCollection : EntityCollection<ServerUserGroup>
294294
{
295295

0 commit comments

Comments
 (0)