From 02f8b9f6936bd1532d49e9663578ec2cedc1ce5c Mon Sep 17 00:00:00 2001 From: Farshad DASHTI <78855469+FrostyApeOne@users.noreply.github.com> Date: Wed, 18 Sep 2024 10:19:35 +0100 Subject: [PATCH] Updated to trigger package deployment --- Dfe.PersonsApi.Client/Generated/Client.g.cs | 4 ++-- Dfe.PersonsApi.Client/Generated/swagger.json | 4 ++-- PersonsApi/Controllers/ConstituenciesController.cs | 8 ++++---- 3 files changed, 8 insertions(+), 8 deletions(-) diff --git a/Dfe.PersonsApi.Client/Generated/Client.g.cs b/Dfe.PersonsApi.Client/Generated/Client.g.cs index 60d36e3e..4f5e7c2e 100644 --- a/Dfe.PersonsApi.Client/Generated/Client.g.cs +++ b/Dfe.PersonsApi.Client/Generated/Client.g.cs @@ -153,7 +153,7 @@ public virtual async System.Threading.Tasks.Task GetMemberOf if (status_ == 400) { string responseText_ = ( response_.Content == null ) ? string.Empty : await response_.Content.ReadAsStringAsync().ConfigureAwait(false); - throw new PersonsApiException("Constituency cannot be null or empty.", status_, responseText_, headers_, null); + throw new PersonsApiException("Constituency cannot be null or empty", status_, responseText_, headers_, null); } else { @@ -252,7 +252,7 @@ public virtual async System.Threading.Tasks.Task GetMemberOf if (status_ == 400) { string responseText_ = ( response_.Content == null ) ? string.Empty : await response_.Content.ReadAsStringAsync().ConfigureAwait(false); - throw new PersonsApiException("Constituency names cannot be null or empty.", status_, responseText_, headers_, null); + throw new PersonsApiException("Constituency names cannot be null or empty", status_, responseText_, headers_, null); } else { diff --git a/Dfe.PersonsApi.Client/Generated/swagger.json b/Dfe.PersonsApi.Client/Generated/swagger.json index ffe05744..80c126c6 100644 --- a/Dfe.PersonsApi.Client/Generated/swagger.json +++ b/Dfe.PersonsApi.Client/Generated/swagger.json @@ -40,7 +40,7 @@ "description": "Constituency not found." }, "400": { - "description": "Constituency cannot be null or empty." + "description": "Constituency cannot be null or empty" } } } @@ -80,7 +80,7 @@ } }, "400": { - "description": "Constituency names cannot be null or empty." + "description": "Constituency names cannot be null or empty" } } } diff --git a/PersonsApi/Controllers/ConstituenciesController.cs b/PersonsApi/Controllers/ConstituenciesController.cs index ca91fe67..e9c591cf 100644 --- a/PersonsApi/Controllers/ConstituenciesController.cs +++ b/PersonsApi/Controllers/ConstituenciesController.cs @@ -15,14 +15,14 @@ namespace PersonsApi.Controllers public class ConstituenciesController(ISender sender) : ControllerBase { /// - /// Retrieve Member of Parliament by constituency name + /// Retrieve Member of Parliament by constituency name /// /// The constituency name. /// The cancellation token. [HttpGet("{constituencyName}/mp")] [SwaggerResponse(200, "A Person object representing the Member of Parliament.", typeof(MemberOfParliament))] [SwaggerResponse(404, "Constituency not found.")] - [SwaggerResponse(400, "Constituency cannot be null or empty.")] + [SwaggerResponse(400, "Constituency cannot be null or empty")] public async Task GetMemberOfParliamentByConstituencyAsync([FromRoute] string constituencyName, CancellationToken cancellationToken) { var result = await sender.Send(new GetMemberOfParliamentByConstituencyQuery(constituencyName), cancellationToken); @@ -31,13 +31,13 @@ public async Task GetMemberOfParliamentByConstituencyAsync([FromR } /// - /// Retrieve a collection of Member of Parliament by a collection of constituency names + /// Retrieve a collection of Member of Parliament by a collection of constituency names /// /// The request. /// The cancellation token. [HttpPost("mps")] [SwaggerResponse(200, "A collection of MemberOfParliament objects.", typeof(IEnumerable))] - [SwaggerResponse(400, "Constituency names cannot be null or empty.")] + [SwaggerResponse(400, "Constituency names cannot be null or empty")] public async Task GetMembersOfParliamentByConstituenciesAsync([FromBody] GetMembersOfParliamentByConstituenciesQuery request, CancellationToken cancellationToken) { var result = await sender.Send(request, cancellationToken);