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

[jinyoungchoi95] Article 단일조회 /수정 / 삭제 기능 구현 #63

Closed
3 tasks done
jinyoungchoi95 opened this issue Oct 24, 2021 · 0 comments
Closed
3 tasks done
Assignees
Labels
feature ori 오리의 이슈

Comments

@jinyoungchoi95
Copy link
Member

jinyoungchoi95 commented Oct 24, 2021

[AS-IS]

  • 게시글 단일조회 기능 미구현

  • 게시글 업데이트 기능 미구현

  • 게시글 삭제기능 미구현

[TO-BE]

  • GET /api/aticles/{slug}

Response:

{
  "article": {
    "slug": "how-to-train-your-dragon",
    "title": "How to train your dragon",
    "description": "Ever wonder how?",
    "body": "It takes a Jacobian",
    "tagList": ["dragons", "training"],
    "createdAt": "2016-02-18T03:22:56.637Z",
    "updatedAt": "2016-02-18T03:48:35.824Z",
    "favorited": false,
    "favoritesCount": 0,
    "author": {
      "username": "jake",
      "bio": "I work at statefarm",
      "image": "https://i.stack.imgur.com/xHWG8.jpg",
      "following": false
    }
  }
}
  • PUT /api/articles/{slug}

Example request body:

Optional fields: title, description, body

{
  "article": {
    "title": "Did you train your dragon?"
  }
}

Response:

{
  "article": {
    "slug": "how-to-train-your-dragon",
    "title": "How to train your dragon",
    "description": "Ever wonder how?",
    "body": "It takes a Jacobian",
    "tagList": ["dragons", "training"],
    "createdAt": "2016-02-18T03:22:56.637Z",
    "updatedAt": "2016-02-18T03:48:35.824Z",
    "favorited": false,
    "favoritesCount": 0,
    "author": {
      "username": "jake",
      "bio": "I work at statefarm",
      "image": "https://i.stack.imgur.com/xHWG8.jpg",
      "following": false
    }
  }
}
  • DELETE /api/articles/{slug}
@jinyoungchoi95 jinyoungchoi95 added feature ori 오리의 이슈 labels Oct 24, 2021
@jinyoungchoi95 jinyoungchoi95 self-assigned this Oct 24, 2021
@jinyoungchoi95 jinyoungchoi95 changed the title [jinyoungchoi95] Article 수정 / 삭제 기능 구현 [jinyoungchoi95] Article 단일조회 /수정 / 삭제 기능 구현 Oct 24, 2021
jinyoungchoi95 added a commit that referenced this issue Oct 24, 2021
- osiv 임시 true 전환
- GET /api/articles/{slug} permit all 변경
jinyoungchoi95 added a commit that referenced this issue Oct 25, 2021
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
feature ori 오리의 이슈
Projects
None yet
Development

No branches or pull requests

1 participant