This commit is contained in:
2025-07-17 06:42:00 +03:30
parent 3f878d15ca
commit 6178c9d4e6
6 changed files with 455 additions and 127 deletions
+69 -61
View File
@@ -1,197 +1,205 @@
using xExceptions.Attributes;
namespace xIdentityService.Constants {
public enum XApiAccountEndpoint {
namespace xIdentityService.Constants
{
public enum XApiAccountEndpoint
{
//
#region Authentication ...
[StringValue ("Account/DiscoveryDocument")]
[StringValue("Account/DiscoveryDocument")]
DiscoveryDocument,
[StringValue ("Account/RequestScopeAccessToken")]
[StringValue("Account/RequestScopeAccessToken")]
RequestScopeAccessToken,
[StringValue ("Account/Authenticate")]
[StringValue("Account/Authenticate")]
Authenticate,
[StringValue ("Account/Login")]
[StringValue("Account/Login")]
Login,
[StringValue ("Account/RefreshTokens")]
[StringValue("Account/RefreshTokens")]
RefreshTokens,
[StringValue ("Account/ChangePassword")]
[StringValue("Account/ChangePassword")]
ChangePassword,
[StringValue ("Account/ResetPassword")]
[StringValue("Account/ResetPassword")]
ResetPassword,
#endregion
//
#region Proile ...
[StringValue ("Account/Profile/{ids}/GetNames")]
[StringValue("Account/Profile/{ids}/GetNames")]
GetNames,
[StringValue ("Account/Profile/GetNameIds")]
[StringValue("Account/Profile/GetNameIds")]
GetNameIds,
[StringValue ("Account/Profile/{userSelectByParam}")]
[StringValue("Account/Profile/{userSelectByParam}")]
GetProfile,
[StringValue ("Account/Profile/Query")]
[StringValue("Account/Profile/Query")]
QueryProfiles,
[StringValue ("Account/Profile/Avatars/Query/{userSelectByParam}")]
[StringValue("Account/Profile/Avatars/Query/{userSelectByParam}")]
QueryAvatars,
[StringValue ("Account/Profile/Update/{userSelectByParam}")]
[StringValue("Account/Profile/Update/{userSelectByParam}")]
UpdateProfile,
[StringValue ("Account/Profile/{userSelectByParam}")]
[StringValue("Account/Profile/{userSelectByParam}")]
FullUpdateProfile,
[StringValue ("Account/Profile/Avatar")]
[StringValue("Account/Profile/Avatar")]
AddAvatar,
[StringValue ("Account/Profile/Avatars")]
[StringValue("Account/Profile/Avatars")]
AddAvatars,
[StringValue ("Account/Profile/Avatars/{ids}")]
[StringValue("Account/Profile/Avatars/{ids}")]
RemoveAvatars,
[StringValue ("Account/Profile/Avatars/{id}/Set")]
[StringValue("Account/Profile/Avatars/{id}/Set")]
SetAvatar,
#endregion
//
#region Registration ...
[StringValue ("Account/CanRegisterUserName/{userName}")]
[StringValue("Account/CanRegisterUserName/{userName}")]
CanRegisterUserName,
[StringValue ("Account/CanRegisterMobileNumber/{mobileNumber}")]
[StringValue("Account/CanRegisterMobileNumber/{mobileNumber}")]
CanRegisterMobileNumber,
[StringValue ("Account/CanRegisterEmail/{email}")]
[StringValue("Account/CanRegisterEmail/{email}")]
CanRegisterEmail,
[StringValue ("Account/IsConfirmedEmail")]
[StringValue("Account/IsConfirmedEmail")]
IsConfirmedEmail,
[StringValue ("Account/IsConfirmedMobile")]
[StringValue("Account/IsConfirmedMobile")]
IsConfirmedMobile,
[StringValue ("Account/ConfirmRegistration")]
[StringValue("Account/ConfirmRegistration")]
ConfirmRegistration,
[StringValue ("Account/ConfirmMobileNumber")]
[StringValue("Account/ConfirmMobileNumber")]
ConfirmMobileNumber,
[StringValue ("Account/ConfirmEmailAddress")]
[StringValue("Account/ConfirmEmailAddress")]
ConfirmEmailAddress,
[StringValue ("Account/RequestConfirmMobile")]
[StringValue("Account/RequestConfirmMobile")]
RequestConfirmMobile,
[StringValue ("Account/RequestConfirmEmail")]
[StringValue("Account/RequestConfirmEmail")]
RequestConfirmEmail,
[StringValue ("Account/RequestResetPassword")]
[StringValue("Account/RequestResetPassword")]
RequestResetPassword,
[StringValue ("Account/RequestConfirmRegistration")]
[StringValue("Account/RequestConfirmRegistration")]
RequestConfirmRegistration,
[StringValue ("Account/InviteUser")]
[StringValue("Account/InviteUser")]
InviteUser,
[StringValue ("Account/RequestRegistration")]
[StringValue("Account/RequestRegistration")]
RequestRegistration,
[StringValue ("Account/AddAccountInfo")]
[StringValue("Account/AddAccountInfo")]
AddAccountInfo,
[StringValue ("Account/AttachProfileImage")]
[StringValue("Account/AttachProfileImage")]
AttachProfileImage,
[StringValue ("Account/FinishRegistration")]
[StringValue("Account/FinishRegistration")]
FinishRegistration,
#endregion
//
#region Friendship ...
[StringValue ("Account/Friendship/{destUser}/Follow")]
[StringValue("Account/Friendship/{destUser}/Follow")]
Follow,
[StringValue ("Account/Friendship/{destUser}/Cancel")]
[StringValue("Account/Friendship/{destUser}/Cancel")]
Cancel,
[StringValue ("Account/Friendship/{destUser}/UnFollowFollower")]
[StringValue("Account/Friendship/{destUser}/UnFollowFollower")]
UnFollowFollower,
[StringValue ("Account/Friendship/{destUser}/UnFollowFollowing")]
[StringValue("Account/Friendship/{destUser}/UnFollowFollowing")]
UnFollowFollowing,
[StringValue ("Account/Friendship/{destUser}/Block")]
[StringValue("Account/Friendship/{destUser}/Block")]
Block,
[StringValue ("Account/Friendship/{destUser}/UnBlock")]
[StringValue("Account/Friendship/{destUser}/UnBlock")]
UnBlock,
[StringValue ("Account/Friendship/{destUser}/AcceptRequest")]
[StringValue("Account/Friendship/{destUser}/AcceptRequest")]
AcceptRequest,
[StringValue ("Account/Friendship/{destUser}/RejectRequest")]
[StringValue("Account/Friendship/{destUser}/RejectRequest")]
RejectRequest,
[StringValue ("Account/Friendship/{destUser}/IsFollower")]
[StringValue("Account/Friendship/{destUser}/IsFollower")]
IsFollower,
[StringValue ("Account/Friendship/{destUser}/FollowerState")]
[StringValue("Account/Friendship/{destUser}/FollowerState")]
FollowerState,
[StringValue ("Account/Friendship/{destUser}/Follower")]
[StringValue("Account/Friendship/{destUser}/Follower")]
Follower,
[StringValue ("Account/Friendship/Followers")]
[StringValue("Account/Friendship/Followers")]
Followers,
[StringValue ("Account/Friendship/AllFollowers")]
[StringValue("Account/Friendship/AllFollowers")]
AllFollowers,
[StringValue ("Account/Friendship/{destUser}/IsFollowing")]
[StringValue("Account/Friendship/{destUser}/IsFollowing")]
IsFollowing,
[StringValue ("Account/Friendship/{destUser}/FollowingState")]
[StringValue("Account/Friendship/{destUser}/FollowingState")]
FollowingState,
[StringValue ("Account/Friendship/{destUser}/Following")]
[StringValue("Account/Friendship/{destUser}/Following")]
Following,
[StringValue ("Account/Friendship/Followings")]
[StringValue("Account/Friendship/Followings")]
Followings,
[StringValue ("Account/Friendship/AllFollowings")]
[StringValue("Account/Friendship/AllFollowings")]
AllFollowings,
[StringValue ("Account/Friendship/FollowingsList")]
[StringValue("Account/Friendship/FollowingsList")]
FollowingsList,
[StringValue ("Account/Friendship/FollowersList")]
[StringValue("Account/Friendship/FollowersList")]
FollowersList,
[StringValue ("Account/Friendship/{destUser}/FriendshipInfo")]
[StringValue("Account/Friendship/{destUser}/FriendshipInfo")]
FriendshipInfo,
#endregion
//
#region Admin ...
[StringValue ("Account/Ban")]
[StringValue("Account/Ban")]
Ban,
[StringValue ("Account/UnBan")]
[StringValue("Account/UnBan")]
UnBan,
[StringValue ("Account/IsBanned/{userSelectByParam}")]
[StringValue("Account/IsBanned/{userSelectByParam}")]
IsBanned,
#endregion
//
#region Open Actions ...
[StringValue("Account/GetUserInfo")]
GetUserInfo,
#endregion
}
}
+3
View File
@@ -50,6 +50,9 @@ namespace xIdentityService.Constants {
[StringValue ("actionToken")]
XActionToken,
[StringValue ("request")]
XRequest,
[StringValue ("scope")]
XScope,
}