diff --git a/MCARefreshBulkAttestationCLITool/Interfaces/ICustomerProvider.cs b/MCARefreshBulkAttestationCLITool/Interfaces/ICustomerProvider.cs index 4b8d742..1d5e2c5 100644 --- a/MCARefreshBulkAttestationCLITool/Interfaces/ICustomerProvider.cs +++ b/MCARefreshBulkAttestationCLITool/Interfaces/ICustomerProvider.cs @@ -17,11 +17,10 @@ namespace MCARefreshBulkAttestationCLITool.Interfaces public interface ICustomerAgreementsClient { - [Get("/v1/partners/customeragreementrecords")] - Task GetCustomerAgreementRecords(CancellationToken cancellationToken = default); + Task GetCustomerAgreementRecords(CancellationToken cancellationToken = default) => this.GetCustomerAgreementRecords(null, cancellationToken); - [Get("/v1/partners/customeragreementrecords?continuationToken={continuationToken}")] - Task GetCustomerAgreementRecords(string continuationToken, CancellationToken cancellationToken = default); + [Get("/v1/partners/customeragreementrecords")] + Task GetCustomerAgreementRecords([AliasAs("continuation_token")][Query] string? continuationToken, CancellationToken cancellationToken = default); [Post("/v1/CreateBulkReAttestation")] Task CreateBulkReAttestation(IEnumerable request, CancellationToken cancellationToken = default); diff --git a/MCARefreshBulkAttestationCLITool/MCARefreshBulkAttestationCLITool.csproj b/MCARefreshBulkAttestationCLITool/MCARefreshBulkAttestationCLITool.csproj index 6b22639..c7148f2 100644 --- a/MCARefreshBulkAttestationCLITool/MCARefreshBulkAttestationCLITool.csproj +++ b/MCARefreshBulkAttestationCLITool/MCARefreshBulkAttestationCLITool.csproj @@ -10,15 +10,15 @@ - + - - - - - - - + + + + + + +