Default Response Code for post is 200? #428
Labels
bug
Something isn't working
fix confirmation pending
issue has been fixed and confirmation from issue reporter is pending
Describe the bug
When annotating a generics.createAPIView or generics.ListCreateAPIView, it seems as if the default response code for post responses is 200. Should it be 201? I am using drf spectacular auto schema and generator.
To Reproduce
Create a class that derives from generics.ListCreateAPIView and look at the post method response.
Expected behavior
The default response should be 201.
The text was updated successfully, but these errors were encountered: