Created
April 18, 2021 04:27
-
-
Save KimSoungRyoul/f2f5225463c5651d7e9bf21a735627a0 to your computer and use it in GitHub Desktop.
This file contains hidden or 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
@extend_schema( | |
tags=["사용자"], | |
summary="method레벨 데코레이터도 가능", | |
parameters=[ | |
OpenApiParameter(name="a_param", description="QueryParam1 입니다.", required=False, type=str), | |
OpenApiParameter( | |
name="date_param", | |
type=OpenApiTypes.DATE, | |
location=OpenApiParameter.QUERY, | |
description="Filter by release date", | |
examples=[ | |
OpenApiExample( | |
"이것은 Query Parameter Example입니다.", | |
summary="short optional summary1", | |
description="longer description", | |
value="1993-08-23", | |
), | |
OpenApiExample( | |
"이것은 Query Parameter Example2입니다.", | |
summary="short optional summary2", | |
description="longer description", | |
value="1993-08-23", | |
), | |
OpenApiExample( | |
"이것은 Query Parameter Example3입니다.", | |
summary="short optional summary3", | |
description="longer description", | |
value="1993-08-23", | |
), | |
], | |
), | |
], | |
) | |
def create(self, request: Request, *args, **kwargs) -> Response: | |
# ... |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment