public async Task <T> Search <T>(PPSAssociationsSearchField field, string value, string retType = "default") where T : class { this.Url = "iam/associations/pps/search"; this.QueryItems.Add(field.ToString(), value); this.QueryItems.Add("retType", retType); return(await this.GetAsync <T>()); }
public async Task <PPSAssociationIamIdResults> GetIamIds(PPSAssociationsSearchField field, string value, string retType = "default") { this.Url = "iam/associations/pps/search"; this.QueryItems.Add(field.ToString(), value); this.QueryItems.Add("retType", "iamids"); return(await this.GetAsync <PPSAssociationIamIdResults>()); }
public async Task <IActionResult> GetPPSAssociation(string key, PPSAssociationsSearchField field, string fieldValue, string retType = "default") { var clientws = new IetClient(key); if (retType.Equals("people", StringComparison.OrdinalIgnoreCase)) { return(Ok(await clientws.PPSAssociations.Search <PeopleResults>(field, fieldValue, "people"))); } return(Ok(await clientws.PPSAssociations.Search(field, fieldValue))); }
// https://ucdavis.jira.com/wiki/spaces/IETP/pages/132808762/Identity+Store+PPS+Associations+API // Can search on iamId , deptCode , isUCDHS , adminDeptCode , adminIsUCDHS , apptDeptCode , apptIsUCDHS , bouOrgOId , titleCode , assocRank // retType can be 'people' or 'default' public async Task <PPSAssociationResults> Search(PPSAssociationsSearchField field, string value, string retType = "default") { return(await Search <PPSAssociationResults>(field, value, retType)); }