Skip to content

Commit

Permalink
throw endpoint
Browse files Browse the repository at this point in the history
  • Loading branch information
bruno-garcia committed Mar 17, 2024
1 parent b26a704 commit c2eb59a
Show file tree
Hide file tree
Showing 2 changed files with 7 additions and 2 deletions.
5 changes: 5 additions & 0 deletions Sentaur.Leaderboard.Api/Program.cs
Original file line number Diff line number Diff line change
Expand Up @@ -153,4 +153,9 @@
return Results.Problem($"Failed to remove provided entry with name '{name}' and score '{score}'");
});

app.MapGet("/throw", (string? text) =>
{
throw new Exception("Testing exception thrown in endpoint: " + text);
});

app.Run();
4 changes: 2 additions & 2 deletions Sentaur.Leaderboard.Api/Sentaur.Leaderboard.Api.http
Original file line number Diff line number Diff line change
Expand Up @@ -11,9 +11,9 @@ Accept: application/json

###

DELETE https://sentaur-leaderboard-f7z2cjcdzq-uc.a.run.app/score?name=test&score=test
DELETE https://sentaur-leaderboard-f7z2cjcdzq-uc.a.run.app/score?name=Bracing&score=2621
Accept: application/json

Authorization: Bearer

###

Expand Down

0 comments on commit c2eb59a

Please sign in to comment.