백창인 과제 03 제출#94
Open
nuagenic wants to merge 14 commits into
Open
Conversation
fivessun
reviewed
Nov 25, 2023
| return obj.description[:300] | ||
|
|
||
|
|
||
| class PostCreateSerializer(serializers.ModelSerializer): |
There was a problem hiding this comment.
이마 메서드별로 Serializer 를 따로 만드실 필요는 없을꺼에요
| permission_classes = [IsAdminOrOwnerOrReadOnly] | ||
|
|
||
|
|
||
| class TagListCreateView(generics.ListAPIView): |
There was a problem hiding this comment.
ListCreateAPIView 를 상속받는게 의도하신 구조와 맞지 않을까요?
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
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
http://waffleblog-env.eba-3j9eg2uq.us-west-2.elasticbeanstalk.com/api/blog/posts/
API Endpoint
/api/auth/register/: request body 에username과password를 입력하면 가입 완료/api/auth/token/: request body 에username과password를 입력하면 token 발급. 이후 Header에 token을 담아 authentication 진행a9fdf5c2debcba7af039f981c299b0ca36937cd2/api/blog/posts: 포스트 목록 확인 가능.comments및tags를 nested serializer로 작업./api/blog/posts/<int:pk>: 포스트 id를 활용하여 상세 페이지 확인/api/blog/comments/: 댓글 전체 목록 확인 가능/api/blog/comments/posts/<int:post_id>/: post id에 해당하는 post에 달린 comments만 확인/api/blog/tags/: 태그 전체 목록 확인 가능/api/posts/<str:content>/: 해당 태그가 달린 포스트 조회/api/comments/<str:content>/: 해당 태그가 달린 댓글 조회