Created
April 18, 2021 04:45
-
-
Save KimSoungRyoul/55cfff6a91864f2ae2f2a48338910b75 to your computer and use it in GitHub Desktop.
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
from study_example_app.schemas import USER_CREATE_EXAMPLES, USER_CREATE_QUERY_PARAM_EXAMPLES | |
... | |
@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=USER_CREATE_QUERY_PARAM_EXAMPLES, | |
), | |
], | |
examples=USER_CREATE_EXAMPLES, | |
) | |
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