Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

게시글 생성 #3

Open
seoyeon0201 opened this issue Jun 5, 2024 · 0 comments
Open

게시글 생성 #3

seoyeon0201 opened this issue Jun 5, 2024 · 0 comments
Assignees
Labels

Comments

@seoyeon0201
Copy link
Contributor

seoyeon0201 commented Jun 5, 2024

게시글 생성
POST http://localhost:8080/v1/post

Request

{
    "title": "Title12 hi",
    "contents": "contents1",
    "tagNames": ["tag1", "tag2", "tag3"]
}

Response

{
    "status": "OK",
    "message": "Post created",
    "data": {
        "title": "Title12 hi",
        "contents": "contents1",
        "tagNames": [
            "tag1",
            "tag2",
            "tag3"
        ],
        "userId": 123456,
        "url": "MyBlog.io/@123456/title12-hi"
    }
}

해시태그 동작
Post, Hashtag, PostHashtag Table 존재

  • Post와 Hashtag는 PostHashtag와 1:N 관계
  • PostHashtag는 둘과 N:1 관계
@seoyeon0201 seoyeon0201 self-assigned this Jun 10, 2024
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Projects
None yet
Development

No branches or pull requests

1 participant