게시글 수정

API
post
METHOD
PUT
PATH
api/posts/{postId}
개발완료
담당자

Description

<게시글 수정>
작성한 게시글 수정
작성자만 사용가능

Request

Content-type: application/json
Shell
복사
{ "drinkId": 1, "type": "REVIEW", "content": "이 막걸리는 맛이 없네요!", "rating": 3.5, "tag": ["시콤", "풍미"], "imageUrl": "http://example.com/image.png" }
JSON
복사

Response

{ "id": 1, "memberId": 1, "memberName": "John", "drink": { "id": 1, "placeName": "서울특별시", "name": "맛있는 특산주", "type": "BEER", "degree": 7.0, "sweetness": 5, "cost": 5000, "averageRating": null, "description": "초콜릿으로 만든 맥주", "imageUrl": null, "createdAt": "2024-09-23T23:36:35" }, "type": "AD", "content": "이 막걸리는 맛이 없네요!", "rating": 3.5, "tags": [ { "tagId": 5, "tagName": "시콤" }, { "tagId": 2, "tagName": "풍미" } ], "imageUrl": "http://example.com/image.png", "viewCount": 1, "likeCount": 0, "createdAt": "2024-09-26T02:22:37.577553", "updatedAt": "2024-09-26T02:49:03.511923", "isLiked": false }
JSON
복사

Error

HTTP/1.1 4XX
”에러 메시지”