@ApiMethod(path="getalltags", httpMethod = HttpMethod.GET)
public APIResponse getAllTags() {
try {
AdminAPI adminAPI = new AdminAPI();
APIResponse resp = adminAPI.getAllRoles();
@SuppressWarnings("unchecked")
List<RoleProp> roles = (List<RoleProp>) resp.object;
List<String> tags = getTagsFromRoles(roles);
resp.statusCode = Status.SUCCESS;
resp.object = tags;
resp.userFriendlyMessage = "No of tags = " + tags.size();
return resp;
} catch (Exception ex) {
return new APIResponse(ex);
}
}