User Login & Verification
Authentication endpoints for users and administrators.
Login
Main authentication endpoint for the management portal.
HTTP Method & URL: POST /api/Login
Request
- Payload
- cURL
Body: LoginModel
{
"Username": "admin@example.com",
"Password": "your_secure_password"
}
curl -X POST "https://stg.itechops.com/api/Login" \
-H "Content-Type: application/json" \
-d '{
"Username": "admin@example.com",
"Password": "your_secure_password"
}'
Responses
- 200 OK
- 401 Unauthorized
- 500 Server Error
Description: Success. Returns user profile and token.
Response Body: ApiResponse<LoginResponseModel>
Description: Invalid credentials.
Description: Internal server error.
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
- 200 OK
- 400 Bad Request
- 500 Server Error
Description: Success.
Description: Invalid data or OTP.
Description: Internal server error.
RBAC (Role Based Access Control)
Manage menus, roles, and permissions.
X-API-KEY Required for all endpoints in this section.
Menus & Permissions
Get RBAC Menu
Retrieve the list of menu items based on roles.
HTTP Method & URL: GET /api/admin/RBAC/GetRBACMenu
Responses
- 200 OK
- 401 Unauthorized
- 500 Server Error
Description: Success. Returns a list of menu items.
Response Body: ApiResponse<List<RBACMenuModel>>
Description: Authentication failed.
Description: Internal server error.
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
- 200 OK
- 401 Unauthorized
- 500 Server Error
Description: Success.
Description: Authentication failed.
Description: Internal server error.
