Skip to content

JH-49 add post list by drf#54

Open
JinHoooooou wants to merge 7 commits intohomework-jhfrom
jh-49-add-post-list-by-drf
Open

JH-49 add post list by drf#54
JinHoooooou wants to merge 7 commits intohomework-jhfrom
jh-49-add-post-list-by-drf

Conversation

@JinHoooooou
Copy link
Contributor

  1. Class Based View 사용

    • DRF의 APIView를 통해 PostRetrieveListView class를 생성하고 get()메서드 구현
    • step2의 views.retrieve_post_list 대신 APIView의 as_view()사용
  2. Serializer 구현

    • ModelSerializer
    • step2의 ModelForm 역할
    • step2에서 메서드에서 직접 JSON으로 변환하던것을 자동으로 해줌
  3. pre-commit 사용

    • black : code formatter
    • flake8 : code style check
    • isort : import한 라이브러리 정렬
    • mypy : 정적 타입 체크

@JinHoooooou JinHoooooou changed the base branch from code-review to homework-jh July 21, 2021 08:03
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant

Comments