Skip to main content

User Login & Verification

Authentication endpoints for users and administrators.

Login Portal UI

Login​

Main authentication endpoint for the management portal.

HTTP Method & URL: POST /api/Login

Request​

Body: LoginModel

{
"Username": "[email protected]",
"Password": "your_secure_password"
}

Responses​

Description: Success. Returns user profile and token.

Response Body: ApiResponse<LoginResponseModel>


Passwords & OTP​

  • PUT /api/Login/updatepassword: Update existing password.
  • POST /api/Login/forgotpassword: Trigger password reset email.
  • POST /api/Login/verify-otp: Verify One-Time Password.

Responses​

Description: Success.


RBAC (Role Based Access Control)

Manage menus, roles, and permissions.

X-API-KEY Required for all endpoints in this section.

Get RBAC Menu​

Retrieve the list of menu items based on roles.

HTTP Method & URL: GET /api/admin/RBAC/GetRBACMenu

Responses​

Description: Success. Returns a list of menu items.

Response Body: ApiResponse<List<RBACMenuModel>>


Roles​

  • POST /api/admin/RBAC/Add-RBACRole: Create or update a role.
  • GET /api/admin/RBAC/GetRBACRole: List all roles.
  • DELETE /api/admin/RBAC/DeleteRBACRole: Remove a role.

Responses​

Description: Success.