{
    "componentChunkName": "component---src-templates-blog-post-js",
    "path": "/django-rest-framework/when-use-viewset-or-apiview/",
    "result": {"data":{"site":{"siteMetadata":{"title":"Today I Learned"}},"markdownRemark":{"id":"0a3698ef-26d3-5ae7-a9b1-5f0927b2809c","excerpt":"ViewSet 을 사용해야 할 때 API가 기본 CRUD 작업을 수행할 일이 많을 경우. 장점 모든 코드를 쓸 필요 없이 적은 양의 코드로도 CRUD 를 구현할 수 있다. APIView…","html":"<h2>ViewSet 을 사용해야 할 때</h2>\n<p>API가 기본 CRUD 작업을 수행할 일이 많을 경우.</p>\n<h3>장점</h3>\n<p>모든 코드를 쓸 필요 없이 적은 양의 코드로도 CRUD 를 구현할 수 있다.</p>\n<h2>APIView 를 사용해야 할 때</h2>\n<p>많은 커스텀 작업이 필요한 경우.</p>\n<h3>장점</h3>\n<p>익숙하지 않은 사람들이 코드를 이해하기 쉽다.</p>\n<p><a href=\"https://www.reddit.com/r/django/comments/sm07s2/drf_when_to_use_viewsets_vs_generic_views_vs/\">출처</a></p>","frontmatter":{"title":"ViewSet 과 APIView 를 사용해야 할 때","date":"April 05, 2022","description":null},"fields":{"category":"django-rest-framework","slug":"/django-rest-framework/when-use-viewset-or-apiview/"}},"previous":{"fields":{"slug":"/django-rest-framework/get-another-models-data-which-has-same-foreign-key/"},"frontmatter":{"title":"foreign key 가 동일한 다른 모델의 데이터 가져오기"}},"next":{"fields":{"slug":"/vue-js/how-to-redirect-by-vue-router/"},"frontmatter":{"title":"Vue Router 사용한 페이지 이동"}}},"pageContext":{"id":"0a3698ef-26d3-5ae7-a9b1-5f0927b2809c","previousPostId":"10416c56-182a-55b5-8c24-74032c67dd68","nextPostId":"69c4c556-c5ee-5f1c-a750-770741ea2ec1"}},
    "staticQueryHashes": ["230163734","2841359383","3496359572"]}