From 103415a19e6b142bd718f76786bf54ecac756f36 Mon Sep 17 00:00:00 2001 From: Gaurav Karna <38985870+gaurav-karna@users.noreply.github.com> Date: Mon, 25 Mar 2024 11:45:58 -0700 Subject: [PATCH] Gk/fix mca refresh query param (#135) * Change refit query param & overload * Fix spacing in csproj * Add back version numbers --- .../Interfaces/ICustomerProvider.cs | 7 +++---- .../MCARefreshBulkAttestationCLITool.csproj | 16 ++++++++-------- 2 files changed, 11 insertions(+), 12 deletions(-) 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 @@ - + - - - - - - - + + + + + + +