forked from tfranzel/drf-spectacular
-
Notifications
You must be signed in to change notification settings - Fork 0
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
✨ Fixes tfranzel#283 -- implement response header parameters
Response headers are sourced from the @extend_schema(parameters=[...]) decorator. Response headers can apply for every response (global, default) or only be applicable to a particular response status code (e.g. Location header on HTTP 201 Created responses). Specifying the response as either a boolean or a dict mapping status code to boolean serves both situations.
- Loading branch information
1 parent
2ce88f0
commit 7497d44
Showing
2 changed files
with
54 additions
and
1 deletion.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters