피드 사진 삭제 - DevCamp2Flame/FlameTalk_Server GitHub Wiki
Feed delete API
Request
Method
DELETE
URL
/api/membership/feed/{feedId}
Header
| Method |
Parameter |
Description |
| Content-Type |
application/json |
|
| ACCESS-TOKEN |
{token} |
access token값 |
Path Variable
| Parameter |
Type |
Description |
Required |
| feedId |
Long |
삭제할 피드 아이템 id |
Y |
Response
Header
| Method |
Parameter |
Description |
| statusCode |
{statusCode} |
http 상태 코드 값 |
Body
| Field |
Type |
Description |
| code |
Integer |
응답 코드 |
| message |
String |
응답 메세지 |
SUCCESS example
{
"status": 200,
"messsage": "피드 사진 삭제 성공"
}
Error Code
| Code |
Error Messsage |
| 400 |
Bad Request |
| 401 |
Unauthorized |
| 404 |
File Not Found |
| 500 |
Server Error |
FAIL example
{
"status": 404,
"message": "존재하지 않는 피드 사진 입니다.",
"error": "NOT_FOUND",
"code": "FILE_NOT_FOUND",
"timestamp": "2022-01-18T19:30:16.3072905",
}