From 3d684491b51febb3de7ebc7c637c080e1bb5074e Mon Sep 17 00:00:00 2001 From: Scott Kirkland Date: Mon, 3 Jun 2024 09:39:06 -0700 Subject: [PATCH] allow empty ids in get methods that return arrays Still required if you are just getting one txn, since null is the best response for missing in that case. --- Sloth.Api/Controllers/v2/TransactionsController.cs | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/Sloth.Api/Controllers/v2/TransactionsController.cs b/Sloth.Api/Controllers/v2/TransactionsController.cs index 84e4b3b8..478bce7b 100644 --- a/Sloth.Api/Controllers/v2/TransactionsController.cs +++ b/Sloth.Api/Controllers/v2/TransactionsController.cs @@ -106,7 +106,7 @@ public async Task GetByProcessorId(string id) /// /// /// - [HttpGet("processortrackingnumber/{id}")] + [HttpGet("processortrackingnumber/{id?}")] [ProducesResponseType(typeof(Transaction), 200)] public async Task> GetAllByProcessorId(string id) { @@ -134,7 +134,7 @@ public async Task> GetAllByProcessorId(string id) /// /// /// - [HttpGet("kfskey/{id}")] + [HttpGet("kfskey/{id?}")] [ProducesResponseType(typeof(IList), 200)] public async Task> GetByKfsKey(string id) {