Skip to content

Fix: use 201 status code for POST requests. #7206

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

Merged
merged 1 commit into from
Mar 2, 2020

Conversation

Behoston
Copy link
Contributor

Description

Related to: #7205
Fixes only 201 status code for POST request.
I've added additional asset to check if status code 201 available in responses for POST action.

I will try to fix all issues with openapi because I really need this in my project.

Copy link
Collaborator

@carltongibson carltongibson left a comment

Choose a reason for hiding this comment

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

OK, it's not perfect, but it covers more/most cases, so let's have it. Thanks @Behoston

@carltongibson carltongibson merged commit 94a0914 into encode:master Mar 2, 2020
@Behoston Behoston deleted the openapi_201 branch March 2, 2020 17:22
pchiquet pushed a commit to pchiquet/django-rest-framework that referenced this pull request Nov 17, 2020
sigvef pushed a commit to sigvef/django-rest-framework that referenced this pull request Dec 3, 2022
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants