// Known Issue: Error when adding district or school to the includeEndPoints param // the returned json uses the 'district'|'school' property to return a string:id when district|school not passed to the api // and when district|school passed to the api, 'district'|'school' property is a complex type e.g. district:district(id,name) public TeacherResp GetTeacherById(string teacherId, ApiParam includeEndPoints = null) { var queryUri = UrlUtils.UriMaker(includeEndPoints == null ? null : new List<ApiParam> { includeEndPoints }, UrlUtils.Teachers, teacherId); return _httpClient.Get<TeacherResp>(queryUri); }
public DistrictResp GetDistrictById(string districtId, ApiParam includeEndPoints = null) { var queryUri = UrlUtils.UriMaker(includeEndPoints == null ? null : new List<ApiParam> { includeEndPoints }, UrlUtils.Districts, districtId); return _httpClient.Get<DistrictResp>(queryUri); }
// Known Issue: Error when adding district to the includeEndPoints param // the returned json uses the 'district' property to return a string:id when district not passed to the api // and when district passed to the api, 'district' property is a complex type district(id,name):district public SchoolResp GetSchoolById(string schoolId, ApiParam includeEndPoints = null) { var queryUri = UrlUtils.UriMaker(includeEndPoints == null ? null : new List<ApiParam> { includeEndPoints }, UrlUtils.Schools, schoolId); return _httpClient.Get<SchoolResp>(queryUri); }
public StudentResp GetStudentById(string studentId, ApiParam includeEndPoints = null) { var queryUri = UrlUtils.UriMaker(includeEndPoints == null ? null : new List<ApiParam> { includeEndPoints }, UrlUtils.Students, studentId); return _httpClient.Get<StudentResp>(queryUri); }