REST API Compatibility changes for Ranger

Breaking changes to APIs in CDP for Ranger and recommendations for how to handle them.

updateXResource

added the new path request parameter 'id'

API Method
PUT
API Endpoint
/assets/resources/{id}
Reason for Change
To fail the request if invalid resource id is provided. For details refer: RANGER-3883
Recommendation
Continue using with valid resource id

updateServiceDef

added the new path request parameter 'id'

API Method
PUT
API Endpoint
/plugins/definitions/{id}
Reason for Change
To fail the request if invalid service-def id is provided. For details refer: RANGER-3883
Recommendation
Continue using with valid service-def id

updatePolicy

added the new path request parameter 'id'

API Method
PUT
API Endpoint
/plugins/policies/{id}
Reason for Change
To fail the request if invalid policy id is provided. For details refer: RANGER-3883
Recommendation
Continue using with valid policy id

addUsersAndGroups2

added the new path request parameter 'id'

API Method
PUT
API Endpoint
/roles/roles/{id}/addUsersAndGroups
Reason for Change
To fail the request if invalid role id is provided. For details refer: RANGER-3883
Recommendation
Continue using with valid role id

removeAdminFromUsersAndGroups2

added the new path request parameter 'id'

API Method
PUT
API Endpoint
/roles/roles/{id}/removeAdminFromUsersAndGroups
Reason for Change
To fail the request if invalid role id is provided. For details refer: RANGER-3883
Recommendation
Continue using with valid role id

removeUsersAndGroups2

added the new path request parameter 'id'

API Method
PUT
API Endpoint
/roles/roles/{id}/removeUsersAndGroups
Reason for Change
To fail the request if invalid role id is provided. For details refer: RANGER-3883
Recommendation
Continue using with valid role id

suggestUserFirstName

api path removed without deprecation

API Method
GET
API Endpoint
/users/firstnames
Reason for Change
Removed as it was not having implementation. For details refer: RANGER-3885
Recommendation
Removed and not available for use

updateXGroupPermission

added the new path request parameter 'id'

API Method
PUT
API Endpoint
/xusers/permission/group/{id}
Reason for Change
To fail the request if invalid group id is provided. For details refer: RANGER-3883
Recommendation
Continue using with valid group id