-
Notifications
You must be signed in to change notification settings - Fork 0
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
refactor: Substituted REST Mapper implementation by REST Handlers
- Loading branch information
1 parent
34dd14e
commit b0ada31
Showing
63 changed files
with
341 additions
and
601 deletions.
There are no files selected for viewing
This file was deleted.
Oops, something went wrong.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,8 @@ | ||
package api | ||
|
||
import ( | ||
typesrest "github.com/pixel-plaza-dev/uru-databases-2-protobuf-common/types/rest" | ||
) | ||
|
||
// Base is the base endpoint for the API REST endpoints | ||
var Base = typesrest.NewEndpoint("api") |
This file was deleted.
Oops, something went wrong.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,11 @@ | ||
package access_tokens | ||
|
||
import ( | ||
grpcauth "github.com/pixel-plaza-dev/uru-databases-2-protobuf-common/config/grpc/auth" | ||
typesrest "github.com/pixel-plaza-dev/uru-databases-2-protobuf-common/types/rest" | ||
) | ||
|
||
// Auth service access tokens endpoints handlers | ||
var ( | ||
IsAccessTokenValidHandler = typesrest.NewHandler(ValidByJwtId, grpcauth.IsAccessTokenValid) | ||
) |
This file was deleted.
Oops, something went wrong.
This file was deleted.
Oops, something went wrong.
This file was deleted.
Oops, something went wrong.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,12 @@ | ||
package auth | ||
|
||
import ( | ||
grpcauth "github.com/pixel-plaza-dev/uru-databases-2-protobuf-common/config/grpc/auth" | ||
typesrest "github.com/pixel-plaza-dev/uru-databases-2-protobuf-common/types/rest" | ||
) | ||
|
||
// Auth service endpoints handlers | ||
var ( | ||
LogInHandler = typesrest.NewHandler(LogIn, grpcauth.LogIn) | ||
LogOutHandler = typesrest.NewHandler(LogOut, grpcauth.LogOut) | ||
) |
This file was deleted.
Oops, something went wrong.
This file was deleted.
Oops, something went wrong.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,14 @@ | ||
package permissions | ||
|
||
import ( | ||
grpcauth "github.com/pixel-plaza-dev/uru-databases-2-protobuf-common/config/grpc/auth" | ||
typesrest "github.com/pixel-plaza-dev/uru-databases-2-protobuf-common/types/rest" | ||
) | ||
|
||
// Auth service permissions endpoints handlers | ||
var ( | ||
GetPermissionsHandler = typesrest.NewHandler(Relative, grpcauth.GetPermissions) | ||
AddPermissionHandler = typesrest.NewHandler(Relative, grpcauth.AddPermission) | ||
GetPermissionHandler = typesrest.NewHandler(ByPermissionId, grpcauth.GetPermission) | ||
RevokePermissionHandler = typesrest.NewHandler(ByPermissionId, grpcauth.RevokePermission) | ||
) |
This file was deleted.
Oops, something went wrong.
This file was deleted.
Oops, something went wrong.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,16 @@ | ||
package refresh_tokens | ||
|
||
import ( | ||
grpcauth "github.com/pixel-plaza-dev/uru-databases-2-protobuf-common/config/grpc/auth" | ||
typesrest "github.com/pixel-plaza-dev/uru-databases-2-protobuf-common/types/rest" | ||
) | ||
|
||
// Auth service refresh tokens endpoints handlers | ||
var ( | ||
RefreshTokenHandler = typesrest.NewHandler(Relative, grpcauth.RefreshToken) | ||
GetRefreshTokensInformationHandler = typesrest.NewHandler(Relative, grpcauth.GetRefreshTokensInformation) | ||
RevokeRefreshTokensHandler = typesrest.NewHandler(Relative, grpcauth.RevokeRefreshTokens) | ||
GetRefreshTokenInformationHandler = typesrest.NewHandler(ByJwtId, grpcauth.GetRefreshTokenInformation) | ||
RevokeRefreshTokenHandler = typesrest.NewHandler(ByJwtId, grpcauth.RevokeRefreshToken) | ||
IsRefreshTokenValidHandler = typesrest.NewHandler(ValidByJwtId, grpcauth.IsRefreshTokenValid) | ||
) |
This file was deleted.
Oops, something went wrong.
This file was deleted.
Oops, something went wrong.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,11 @@ | ||
package role_permissions | ||
|
||
import ( | ||
grpcauth "github.com/pixel-plaza-dev/uru-databases-2-protobuf-common/config/grpc/auth" | ||
typesrest "github.com/pixel-plaza-dev/uru-databases-2-protobuf-common/types/rest" | ||
) | ||
|
||
// Auth service role permissions endpoints handlers | ||
var ( | ||
RevokeRolePermissionHandler = typesrest.NewHandler(ByRoleId, grpcauth.RevokeRolePermission) | ||
) |
This file was deleted.
Oops, something went wrong.
This file was deleted.
Oops, something went wrong.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,15 @@ | ||
package roles | ||
|
||
import ( | ||
grpcauth "github.com/pixel-plaza-dev/uru-databases-2-protobuf-common/config/grpc/auth" | ||
typesrest "github.com/pixel-plaza-dev/uru-databases-2-protobuf-common/types/rest" | ||
) | ||
|
||
// Auth service roles endpoints handlers | ||
var ( | ||
AddRoleHandler = typesrest.NewHandler(Relative, grpcauth.AddRole) | ||
GetRolesHandler = typesrest.NewHandler(Relative, grpcauth.GetRoles) | ||
AddRolePermissionHandler = typesrest.NewHandler(ByRoleId, grpcauth.AddRolePermission) | ||
GetRolePermissionsHandler = typesrest.NewHandler(ByRoleId, grpcauth.GetRolePermissions) | ||
RevokeRoleHandler = typesrest.NewHandler(ByRoleId, grpcauth.RevokeRole) | ||
) |
This file was deleted.
Oops, something went wrong.
This file was deleted.
Oops, something went wrong.
Oops, something went wrong.