Files
xIdentityService/Constants/XApiAccountEndpoint.cs
2025-12-23 22:47:20 +03:30

217 lines
5.5 KiB
C#

using xExceptions.Attributes;
namespace xIdentityService.Constants
{
public enum XApiAccountEndpoint
{
//
#region Authentication ...
[StringValue("Account/DiscoveryDocument")]
DiscoveryDocument,
[StringValue("Account/RequestScopeAccessToken")]
RequestScopeAccessToken,
[StringValue("Account/Authenticate")]
Authenticate,
[StringValue("Account/Login")]
Login,
[StringValue("Account/RefreshTokens")]
RefreshTokens,
[StringValue("Account/ChangePassword")]
ChangePassword,
[StringValue("Account/ResetPassword")]
ResetPassword,
#endregion
//
#region Proile ...
[StringValue("Account/Profile/{ids}/GetNames")]
GetNames,
[StringValue("Account/Profile/GetNameIds")]
GetNameIds,
[StringValue("Account/Profile/{userSelectByParam}")]
GetProfile,
[StringValue("Account/Profile/Query")]
QueryProfiles,
[StringValue("Account/Profile/Avatars/Query/{userSelectByParam}")]
QueryAvatars,
[StringValue("Account/Profile/Update/{userSelectByParam}")]
UpdateProfile,
[StringValue("Account/Profile/{userSelectByParam}")]
FullUpdateProfile,
[StringValue("Account/Profile/Avatar")]
AddAvatar,
[StringValue("Account/Profile/Avatars")]
AddAvatars,
[StringValue("Account/Profile/Avatars/{ids}")]
RemoveAvatars,
[StringValue("Account/Profile/Avatars/{id}/Set")]
SetAvatar,
#endregion
//
#region Search ...
[StringValue("Account/OpenToSearch/Query")]
QueryOpenToSearchProfiles,
#endregion
//
#region Registration ...
[StringValue("Account/CanRegisterUserName/{userName}")]
CanRegisterUserName,
[StringValue("Account/CanRegisterMobileNumber/{mobileNumber}")]
CanRegisterMobileNumber,
[StringValue("Account/CanRegisterEmail/{email}")]
CanRegisterEmail,
[StringValue("Account/IsConfirmedEmail")]
IsConfirmedEmail,
[StringValue("Account/IsConfirmedMobile")]
IsConfirmedMobile,
[StringValue("Account/ConfirmRegistration")]
ConfirmRegistration,
[StringValue("Account/ConfirmMobileNumber")]
ConfirmMobileNumber,
[StringValue("Account/ConfirmEmailAddress")]
ConfirmEmailAddress,
[StringValue("Account/RequestConfirmMobile")]
RequestConfirmMobile,
[StringValue("Account/RequestConfirmEmail")]
RequestConfirmEmail,
[StringValue("Account/RequestResetPassword")]
RequestResetPassword,
[StringValue("Account/RequestConfirmRegistration")]
RequestConfirmRegistration,
[StringValue("Account/InviteUser")]
InviteUser,
[StringValue("Account/RequestRegistration")]
RequestRegistration,
[StringValue("Account/AddAccountInfo")]
AddAccountInfo,
[StringValue("Account/AttachProfileImage")]
AttachProfileImage,
[StringValue("Account/FinishRegistration")]
FinishRegistration,
#endregion
//
#region Friendship ...
[StringValue("Account/Friendship/{destUser}/Follow")]
Follow,
[StringValue("Account/Friendship/{destUser}/Cancel")]
Cancel,
[StringValue("Account/Friendship/{destUser}/UnFollowFollower")]
UnFollowFollower,
[StringValue("Account/Friendship/{destUser}/UnFollowFollowing")]
UnFollowFollowing,
[StringValue("Account/Friendship/{destUser}/Block")]
Block,
[StringValue("Account/Friendship/{destUser}/UnBlock")]
UnBlock,
[StringValue("Account/Friendship/{destUser}/AcceptRequest")]
AcceptRequest,
[StringValue("Account/Friendship/{destUser}/RejectRequest")]
RejectRequest,
[StringValue("Account/Friendship/{destUser}/FriendshipInfo")]
FriendshipInfo,
[StringValue("Account/Friendship/{destUser}/IsFollower")]
IsFollower,
[StringValue("Account/Friendship/{destUser}/FollowerState")]
FollowerState,
[StringValue("Account/Friendship/{destUser}/Follower")]
Follower,
[StringValue("Account/Friendship/Followers")]
Followers,
[StringValue("Account/Friendship/AllFollowers")]
AllFollowers,
[StringValue("Account/Friendship/FollowersList")]
FollowersList,
[StringValue("Account/Friendship/QueryFollowers")]
QueryFollowers,
[StringValue("Account/Friendship/{destUser}/IsFollowing")]
IsFollowing,
[StringValue("Account/Friendship/{destUser}/FollowingState")]
FollowingState,
[StringValue("Account/Friendship/{destUser}/Following")]
Following,
[StringValue("Account/Friendship/Followings")]
Followings,
[StringValue("Account/Friendship/AllFollowings")]
AllFollowings,
[StringValue("Account/Friendship/FollowingsList")]
FollowingsList,
[StringValue("Account/Friendship/QueryFollowings")]
QueryFollowings,
#endregion
//
#region Admin ...
[StringValue("Account/Ban")]
Ban,
[StringValue("Account/UnBan")]
UnBan,
[StringValue("Account/IsBanned/{userSelectByParam}")]
IsBanned,
#endregion
//
#region Open Actions ...
[StringValue("Account/Open")]
Open,
#endregion
}
}