-
Notifications
You must be signed in to change notification settings - Fork 3
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Merge pull request #935 from DFE-Digital/feature/v4-endpoints
Now using V4 endpoints
- Loading branch information
Showing
45 changed files
with
229 additions
and
286 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
2 changes: 1 addition & 1 deletion
2
...repareConversions/Dfe.PrepareConversions.Data/Models/Establishment/NameAndCodeResponse.cs
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
21 changes: 5 additions & 16 deletions
21
Dfe.PrepareConversions/Dfe.PrepareConversions.Data/Models/Trust/TrustDetailResponse.cs
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,22 +1,11 @@ | ||
using System.Collections.Generic; | ||
|
||
namespace Dfe.PrepareConversions.Data.Models.Trust; | ||
|
||
public class TrustDetailResponse | ||
{ | ||
public List<TrustDetail> Data { get; set; } | ||
} | ||
namespace Dfe.PrepareConversions.Data.Models.Trust; | ||
|
||
public class TrustDetail | ||
{ | ||
public GiasData GiasData { get; set; } | ||
} | ||
|
||
public class GiasData | ||
{ | ||
public string GroupId { get; set; } | ||
public string GroupName { get; set; } | ||
public string ReferenceNumber { get; set; } | ||
public string Name { get; set; } | ||
public string GroupType { get; set; } | ||
public int CompaniesHouseNumber { get; set; } | ||
public string CompaniesHouseNumber { get; set; } | ||
public string Ukprn { get; set; } | ||
} | ||
|
36 changes: 5 additions & 31 deletions
36
Dfe.PrepareConversions/Dfe.PrepareConversions.Data/Models/Trust/TrustSummaryResponse.cs
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,35 +1,9 @@ | ||
using System.Collections.Generic; | ||
using Dfe.Academies.Contracts.V4.Trusts; | ||
using System.Collections.Generic; | ||
|
||
namespace Dfe.PrepareConversions.Data.Models.Trust; | ||
|
||
public class TrustSummaryResponse | ||
public class TrustDtoResponse | ||
{ | ||
public List<TrustSummary> Data { get; set; } | ||
} | ||
|
||
public class TrustSummary | ||
{ | ||
public string Ukprn { get; set; } | ||
public string GroupName { get; set; } | ||
public string CompaniesHouseNumber { get; set; } | ||
public string TrustType { get; set; } | ||
public TrustAddress TrustAddress { get; set; } | ||
public List<EstablishmentDetail> Establishments { get; set; } | ||
} | ||
|
||
public class TrustAddress | ||
{ | ||
public string Street { get; set; } | ||
public string Locality { get; set; } | ||
public string AdditionalLine { get; set; } | ||
public string Town { get; set; } | ||
public string County { get; set; } | ||
public string Postcode { get; set; } | ||
} | ||
|
||
public class EstablishmentDetail | ||
{ | ||
public string Urn { get; set; } | ||
public string Name { get; set; } | ||
public string Ukprn { get; set; } | ||
} | ||
public List<TrustDto> Data { get; set; } | ||
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
7 changes: 4 additions & 3 deletions
7
Dfe.PrepareConversions/Dfe.PrepareConversions.Data/Services/Interfaces/ITrustsRepository.cs
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,11 +1,12 @@ | ||
using Dfe.PrepareConversions.Data.Models.Trust; | ||
using Dfe.Academies.Contracts.V4.Trusts; | ||
using Dfe.PrepareConversions.Data.Models.Trust; | ||
using System.Threading.Tasks; | ||
|
||
namespace Dfe.PrepareConversions.Data.Services.Interfaces; | ||
|
||
public interface ITrustsRepository | ||
{ | ||
Task<TrustSummaryResponse> SearchTrusts(string searchQuery); | ||
Task<TrustDtoResponse> SearchTrusts(string searchQuery); | ||
|
||
Task<TrustDetail> GetTrustByUkprn(string ukprn); | ||
Task<TrustDto> GetTrustByUkprn(string ukprn); | ||
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Oops, something went wrong.