피드 사진 공개 설정 - DevCamp2Flame/FlameTalk_Server GitHub Wiki
Feed image lock update API
Request
Method
PUT
URL
/api/membership/feed/lock/{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": "피드 사진 공개 여부 변환 성공"
"data": {
"feedId": 1,
"imageUrl": "https://flametalk-bucket.s3.ap-northeast-2.amazonaws.com/profile/flametalk_a_20222621172609.JPG",
"isBackground": true,
"isLock": false,
"createdDate": "2022-01-14T10:52:39",
"updatedDate": "2022-01-19T10:52:39"
}
}
Error Code
Code |
Error Messsage |
400 |
Bad Request |
401 |
Unauthorized |
404 |
File Not Found |
500 |
Server Error |
FAIL example
{
"status": 404,
"message": "존재하지 않는 피드 사진 입니다.",
"error": "BAD_REQUEST",
"code": "BAD_REQUEST",
"timestamp": "2022-01-18T19:30:16.3072905",
}