Skip to content

Commit

Permalink
allow empty ids in get methods that return arrays
Browse files Browse the repository at this point in the history
Still required if you are just getting one txn, since null is the best response for missing in that case.
  • Loading branch information
srkirkland committed Jun 3, 2024
1 parent 7e89874 commit 3d68449
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions Sloth.Api/Controllers/v2/TransactionsController.cs
Original file line number Diff line number Diff line change
Expand Up @@ -106,7 +106,7 @@ public async Task<Transaction> GetByProcessorId(string id)
/// </summary>
/// <param name="id"></param>
/// <returns></returns>
[HttpGet("processortrackingnumber/{id}")]
[HttpGet("processortrackingnumber/{id?}")]
[ProducesResponseType(typeof(Transaction), 200)]
public async Task<IList<Transaction>> GetAllByProcessorId(string id)
{
Expand Down Expand Up @@ -134,7 +134,7 @@ public async Task<IList<Transaction>> GetAllByProcessorId(string id)
/// </summary>
/// <param name="id"></param>
/// <returns></returns>
[HttpGet("kfskey/{id}")]
[HttpGet("kfskey/{id?}")]
[ProducesResponseType(typeof(IList<Transaction>), 200)]
public async Task<IList<Transaction>> GetByKfsKey(string id)
{
Expand Down

0 comments on commit 3d68449

Please sign in to comment.