Skip to content

Commit 3b33550

Browse files
committed
Add ProducesResponseType attribute
1 parent fd20ebe commit 3b33550

1 file changed

Lines changed: 4 additions & 0 deletions

File tree

src/Api/Tools/Controllers/SendsController.cs

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -70,6 +70,10 @@ IHasPremiumAccessQuery hasPremiumAccessQuery
7070

7171
[AllowAnonymous]
7272
[HttpPost("access/{id}")]
73+
[ProducesResponseType<SendAccessResponseModel>(StatusCodes.Status200OK)]
74+
[ProducesResponseType(StatusCodes.Status400BadRequest)]
75+
[ProducesResponseType(StatusCodes.Status401Unauthorized)]
76+
[ProducesResponseType(StatusCodes.Status404NotFound)]
7377
public async Task<SendAccessResponseModel> Access(string id, [FromBody] SendAccessRequestModel model)
7478
{
7579
// Uncomment whenever we want to require the `send-id` header

0 commit comments

Comments
 (0)