Skip to content

Commit

Permalink
Merge pull request #421 from ucdavis/srk/nomatch-badkey
Browse files Browse the repository at this point in the history
allow empty ids in get methods that return arrays
  • Loading branch information
srkirkland authored Jun 3, 2024
2 parents 7e89874 + 3d68449 commit 4200cda
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 4200cda

Please sign in to comment.