Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Fix some nits #764

Merged
merged 1 commit into from
Nov 8, 2024
Merged

Fix some nits #764

merged 1 commit into from
Nov 8, 2024

Conversation

IvanObreshkov
Copy link
Collaborator

No description provided.

@@ -42,7 +42,7 @@ def _handler(service: ParticipantService = Depends(_service)) -> ParticipantHand


@participants_router.post(
"", responses={201: {"model": ParticipantRegisteredInTeamResponse}, 409: {"model": ErrResponse}}
"", status_code=201, responses={201: {"model": ParticipantRegisteredInTeamResponse}, 409: {"model": ErrResponse}}
Copy link
Collaborator Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

I added this to tell the Swagger docs that this is the default status code to be returned. otherwise, it puts 200 by default. and we get possible returned response codes: 200, 201, 409, 422 and we want only 201, 409, 422

Copy link
Collaborator

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Nice!

Copy link
Collaborator

@Isak-Bego Isak-Bego left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

LGTBQ+

@IvanObreshkov IvanObreshkov merged commit d7d2d36 into main Nov 8, 2024
2 checks passed
@IvanObreshkov IvanObreshkov deleted the fix-some-nits branch November 8, 2024 05:53
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants