마이페이지
show mypage
GET
http://api.phopo.best/api/users/my-posts
This endpoint allows you to get free cakes.
Headers
Name
Type
Description
Authorization
string
"규칙 참조"
{
"payload": {
"user": {
"email": "user8@naver.com",
"nickname": "lee3",
"profile_image": "https://avon-spott-imageserver.s3.ap-northeast-2.amazonaws.com/media/usr/%EC%97%AC%EC%9E%903_EWhQtWE.jpg",
"is_public": true
},
"posts": [
{
"id": 1693,
"posts_image": "https://avon-spott-imageserver.s3.ap-northeast-2.amazonaws.com/media/post/p20200217202442.jpg",
"latitude": 35.1028455495902,
"longitude": 127.80999507755
},
{
"id": 1692,
"posts_image": "https://avon-spott-imageserver.s3.ap-northeast-2.amazonaws.com/media/post/p20200216120420.jpg",
"latitude": 37.5061111450195,
"longitude": 127.051940917969
}
...
...
...
],
"myself": true,
"is_confirmation": (int) #확인 안 한 알림의 개수가 int 값으로 날아감
},
"message": "show mypage"
}
PATCH
http://api.phopo.best/api/users/my-posts
'유저 공개 or 비공개 상태 전환'
Path Parameters
Name
Type
Description
Authorization
string
'규칙 참조'
Request Body
Name
Type
Description
is_public
boolean
'공개 설정 시 True 비공개 설정 시 False를 실어 보낸다'
{
"payload": {
"public": true
},
"message": "public account"
}
Last updated
Was this helpful?