-
Notifications
You must be signed in to change notification settings - Fork 1
2 3. 게시글 수정
Donghoon Lee edited this page Nov 2, 2021
·
2 revisions
메소드 | 경로 | 짧은 설명 |
---|---|---|
PUT | http://ServerAddress:3000/posts/edit/:boardId | 게시글 수정 |
변수 | 타입 | 설명 |
---|---|---|
"token" | STRING | 액세스 토큰 |
변수 | 타입 | 설명 |
---|---|---|
"boardId" | STRING | 게시글 id |
body - JSON
{
"title" : "게시글 제목 수정 테스트",
"content" : "게시글 내용 수정 테스트",
"category": "wanted",
"UserId"
}
-
UserId
: 게시글 주인의 Id
Success: 게시글 수정 성공 (200)
{
"게시물 수정 완료"
}
fail: 잘못된 요청시 (400)
{
"요청이 잘못되었습니다. 재검토하고 재요청할 필요가 있습니다."
}
fail: 헤더 토큰 유무 (401)
{
message: "You are not authenticated!"
}
fail: 헤더 유효하지 않은 토큰을 입력한 경우 (403)
{
message: "Token is not valid!"
}
fail: 권한이 없는 경우 (403)
{
message: "You are not allowed to do that!"
}