getRoleByNameWithHttpInfo method
Get a role
Get a role from the provided role name. ##### Permissions Requires an active session but no other permissions. Minimum server version: 4.9
Note: This method returns the HTTP Response
.
Parameters:
- String roleName (required): Role Name
Implementation
Future<Response> getRoleByNameWithHttpInfo(
String roleName,
) async {
// ignore: prefer_const_declarations
final path = r'/roles/name/{role_name}'.replaceAll('{role_name}', roleName);
// ignore: prefer_final_locals
Object? postBody;
final queryParams = <MmQueryParam>[];
final headerParams = <String, String>{};
final formParams = <String, String>{};
const contentTypes = <String>[];
return apiClient.invokeAPI(
path,
'GET',
queryParams,
postBody,
headerParams,
formParams,
contentTypes.isEmpty ? null : contentTypes.first,
);
}