MobileApp
User Roles Fetch
Changed onFunction: Fetch User Roles and Permissions
Type: API Endpoint (POST)
Purpose:
Fetches the roles and associated permissions for a user based on the provided usercode, appcode, group_code, and menu_code.
Headers:
- App_Code (str, required): The application code.
- User_Code (str, required): The user code.
- Group_Code (str, required): The group code.
Response:
Returns a JSON response containing the user roles and their permissions.
Exceptions:
- HTTPException: If any exception occurs during the process, it raises an HTTPException with a 500 status code and the exception message.
post/api/MobileApp/user_roles_permissions
Request
- Base URLhttps://api.leapsurgebi.com (the document declares no server; this is the origin it was published from)
- AuthOAuth 2PasswordToken URL/auth/token
- TypeScriptA function with typed inputs. Its response is checked against the schema.
Headers
App-Codestring required
User-Codestring required
Group-Codestring required
Response
Successful Response
unknown required
Changes
- info
endpoint added
- info