Ejemplo n.º 1
0
 // 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 async Task<SchoolResp> GetSchoolByIdAsync(string schoolId, ApiParam includeEndPoints = null)
 {
     var queryUri = UrlUtils.UriMaker(includeEndPoints == null ? null : new List<ApiParam> { includeEndPoints }, UrlUtils.Schools, schoolId);
     return await _httpClient.Get<SchoolResp>(queryUri);
 }
Ejemplo n.º 2
0
 // 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 async Task<TeacherResp> GetTeacherByIdAsync(string teacherId, ApiParam includeEndPoints = null)
 {
     var queryUri = UrlUtils.UriMaker(includeEndPoints == null ? null : new List<ApiParam> { includeEndPoints }, UrlUtils.Teachers, teacherId);
     return await _httpClient.Get<TeacherResp>(queryUri);
 }
Ejemplo n.º 3
0
 public async Task<DistrictResp> GetDistrictByIdAsync(string districtId, ApiParam includeEndPoints = null)
 {
     var queryUri = UrlUtils.UriMaker(includeEndPoints == null ? null : new List<ApiParam> { includeEndPoints }, UrlUtils.Districts, districtId);
     return await _httpClient.Get<DistrictResp>(queryUri);
 }