List all methods of REST API and explain the API functionality

Login

This API is used to authenticate user to the system. User invokes this API to login to the system.

URL: http://[SERVER]:[PORT]/IAM2RESTService/services/v1/login 
HTTP Request Header: Content-Type: application/json 
HTTP Request Body: { 
   "username":"[Name]", 
   "password":"[Password]", 
   "system_id":"[System ID from IAM2]", 
   "system_secret":"[System secret code]" 
 } 
HTTP Response Body: { 
    "accessToken": "5T_e-GoXlHd_xUIh7ot31_x2g-tihld7_f4t_mvSwgE=" // the IAM accessToken 
} 

Permission

This API is used to retrieve all roles and objects associated to a user permission. The response for this lists all the available roles and objects that are accessible by the user.

URL: http://[SERVER]:[PORT]/IAM2RESTService/services/v1/perms/{accessToken} 
HTTP Method: GET 
HTTP Request Header: n/a 
HTTP Request Body: n/a 
HTTP Response Body: { 
    "Permission": { 
        "role": [ 
            { 
                "role_id": -2, 
                "role_name": "user", 
                "role_desc": null, 
                "parent_role": null, 
                "system_id": -99 
            } 
        ], 
        "objectAccesses": [ 
            { 
                "object_id": -9, 
                "object_name": "USER_PROFILE_USERMODE", 
                "object_type": "MENU_USER", 
                "object_ref_id": null, 
                "access": [ 
                    { 
                        "access_id": 1, 
                        "access_type": "view", 
                        "object_id": -9 
                    } 
                ], 
                "object_property": [ 
                    { 
                        "objectPropertyId": -9, 
                        "objectId": -9, 
                        "name": "profileusermode", 
                        "value": "/profileusermode.html" 
                    } 
                ] 
            }] 
}} 

User Information

This API is used to retrieve all user information regarding the logged in user.

Get Objects

This API is used to retrieve all objects accessible to the logged in user.

Get Object Types

This API is used to retrieve all objects types accessible to the logged in user.

Get All Permissions

This API is used to retrieve all permissions from all the systems accessible to the logged in user.

Get All Users

This API is used to retrieve all users from all the systems.

Logout

This API is used to logout from the system.

Last updated