Torimuk Coder

  • 홈
  • 태그
  • 방명록

fbv swagger 1

[Django] Function Based View 환경에서 Swagger 사용하기

Problem Swagger를 추가해서 Django API 문서를 만들어보자 FBV(Function Based View) 환경에서 진행한다. FBV 환경에서 진행하는 문서가 부족해 작성하게 되었다. Solution 1. drf-yasg와 djangorestframework를 설치한다. pip install drf_yasg pip install djangorestframework 2. 설치 후 url.py에서 schema_url_patterns를 설정하고, get_schema_view를 정의한다. schema_url_patterns = [ path('루트URL/', include('app.url')), ] schema_view_v1 = get_schema_view( openapi.Info( title="O..

Django 2022.04.28
이전
1
다음
더보기
프로필사진

Django 공부 중

  • 분류 전체보기 (29)
    • Django (8)
    • Python (9)
    • Node.js (0)
    • jQuery (0)
    • JavaScript (2)
    • BOJ (6)
    • Java (2)
    • Spring Boot (0)
    • SQL (1)
    • CS (1)

Tag

swagger header, fbv swagger, python jwt, django swagger, 고정 정밀도, 딕셔너리 합, 백준온라인저지, django header, jwt header, BOJ, Python, python오버로딩, handler500, 임의 정밀도, 장고 스웨거, Django Custom Exception Handler, django jwt, Django, Custom Exception Handler, django fbv,

최근글과 인기글

  • 최근글
  • 인기글

최근댓글

공지사항

페이스북 트위터 플러그인

  • Facebook
  • Twitter

Archives

Calendar

«   2025/05   »
일 월 화 수 목 금 토
1 2 3
4 5 6 7 8 9 10
11 12 13 14 15 16 17
18 19 20 21 22 23 24
25 26 27 28 29 30 31

방문자수Total

  • Today :
  • Yesterday :

Copyright © Kakao Corp. All rights reserved.

티스토리툴바