Skip to content

Inconsistent return type in PlayerController.PostAsync method #195

Closed
@coderabbitai

Description

@coderabbitai

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
No labels

Projects

No projects

Milestone

No milestone

Relationships

None yet

Development

No branches or pull requests

Issue actions