Closed
Description
Description
The PostAsync
method in PlayerController.cs
currently returns the request model (PlayerRequestModel
) rather than a response model (PlayerResponseModel
), which is inconsistent with the other methods in the controller.
Current Implementation
[ProducesResponseType<PlayerRequestModel>(StatusCodes.Status201Created)]
Suggested Implementation
[ProducesResponseType<PlayerResponseModel>(StatusCodes.Status201Created)]
This would require modifying the PostAsync
method to map the request to a response model before returning it.
References
Metadata
Metadata
Assignees
Labels
No labels