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 typo in read_item GET view #74

Merged
merged 2 commits into from
Feb 7, 2020
Merged

Conversation

jcaguirre89
Copy link
Contributor

Swapped read_user_me for read_item for the single item get request. Looks like it was copied from the user paths and not updated. Doesn't change functionality but is more readable as it didn't make sense to have it called read_user_me and might be confusing. While I was at it I also updated the status code for not found to 404, so it's a more helpful error message if not found.

Swapped `read_user_me` for `read_item` for the single item get request. Looks like it was copied from the user paths and not updated. Doesn't change functionality but is more readable as it didn't make sense to have it called `read_user_me` and might be confusing. While I was at it I also updated the status code for not found to 404, so it's a more helpful error message if not found.
@tiangolo tiangolo merged commit dc712ac into fastapi:master Feb 7, 2020
@tiangolo
Copy link
Member

tiangolo commented Feb 7, 2020

Good catch! Thanks @jcaguirre89 ! 🔍 🎉 🍰

gusevyaroslove pushed a commit to gusevyaroslove/fastapi-template that referenced this pull request Aug 4, 2024
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