Skip to content

Commit 4978ac2

Browse files
feat: attributes were added to all controllers, allowing the use of specific api conventions for each one. this improves response standardization and integration with documentation tools
1 parent f38ca86 commit 4978ac2

8 files changed

Lines changed: 8 additions & 0 deletions

File tree

Source/HttpsRichardy.Federation.WebApi/Controllers/ConnectController.cs

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,7 @@
11
namespace HttpsRichardy.Federation.WebApi.Controllers;
22

33
[ApiController]
4+
[ApiConventionType(typeof(ConnectConventions))]
45
[Route("api/v1/protocol/open-id/connect")]
56
public sealed class ConnectController(IDispatcher dispatcher) : ControllerBase
67
{

Source/HttpsRichardy.Federation.WebApi/Controllers/GroupsController.cs

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,7 @@
11
namespace HttpsRichardy.Federation.WebApi.Controllers;
22

33
[ApiController]
4+
[ApiConventionType(typeof(GroupsConventions))]
45
[RealmRequired]
56
[Route("api/v1/groups")]
67
public sealed class GroupsController(IDispatcher dispatcher) : ControllerBase

Source/HttpsRichardy.Federation.WebApi/Controllers/IdentityController.cs

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,7 @@
11
namespace HttpsRichardy.Federation.WebApi.Controllers;
22

33
[ApiController]
4+
[ApiConventionType(typeof(IdentityConventions))]
45
[Route("api/v1/identity")]
56
public sealed class IdentityController(IDispatcher dispatcher) : ControllerBase
67
{

Source/HttpsRichardy.Federation.WebApi/Controllers/PermissionsController.cs

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,7 @@
11
namespace HttpsRichardy.Federation.WebApi.Controllers;
22

33
[ApiController]
4+
[ApiConventionType(typeof(PermissionsConventions))]
45
[RealmRequired]
56
[Route("api/v1/permissions")]
67
public sealed class PermissionsController(IDispatcher dispatcher) : ControllerBase

Source/HttpsRichardy.Federation.WebApi/Controllers/RealmsController.cs

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,7 @@
11
namespace HttpsRichardy.Federation.WebApi.Controllers;
22

33
[ApiController]
4+
[ApiConventionType(typeof(RealmsConventions))]
45
[RealmRequired]
56
[Route("api/v1/realms")]
67
public sealed class RealmsController(IDispatcher dispatcher) : ControllerBase

Source/HttpsRichardy.Federation.WebApi/Controllers/ScopesController.cs

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,7 @@
11
namespace HttpsRichardy.Federation.WebApi.Controllers;
22

33
[ApiController]
4+
[ApiConventionType(typeof(ScopesConventions))]
45
[RealmRequired]
56
[Route("api/v1/scopes")]
67
public sealed class ScopesController(IDispatcher dispatcher) : ControllerBase

Source/HttpsRichardy.Federation.WebApi/Controllers/UsersController.cs

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,7 @@
11
namespace HttpsRichardy.Federation.WebApi.Controllers;
22

33
[ApiController]
4+
[ApiConventionType(typeof(UsersConventions))]
45
[RealmRequired]
56
[Route("api/v1/users")]
67
public sealed class UsersController(IDispatcher dispatcher) : ControllerBase

Source/HttpsRichardy.Federation.WebApi/Controllers/WellKnownController.cs

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,7 @@
11
namespace HttpsRichardy.Federation.WebApi.Controllers;
22

33
[ApiController]
4+
[ApiConventionType(typeof(WellKnownConventions))]
45
[Route(".well-known")]
56
public sealed class WellKnownController(IDispatcher dispatcher) : ControllerBase
67
{

0 commit comments

Comments
 (0)