📄
lee
  • Initial page
  • API
  • 이메일 인증
    • 이메일 인증
    • 패스워드 찾기 이메일 인증
  • 회원가입 및 신규 패스워드
    • 소셜 계정
    • 회원가입
    • 신규 패스워드
  • 로그인
    • 토큰 발급(로그인)
    • 토큰 인증(자동 로그인)
  • 마이페이지
    • 유저 마이페이지
    • 마이페이지
  • 댓글
    • 댓글
  • 알림
  • 좋아요
  • 게시글(사진)
  • 패스워드
  • 신고
  • 스크랩
    • 스크랩 페이지
    • 스크랩
  • 태그
  • 검색
  • 최근검색어
  • 유저
  • 규칙
Powered by GitBook
On this page

Was this helpful?

  1. 마이페이지

마이페이지

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를 실어 보낸다'

public account
{
    "payload": {
        "public": true
    },
    "message": "public account"
}
private account
{
    "payload": {
        "public": false
    },
    "message": "private account"
}
{
    "error": {
        "message": "Send it in a bundle name 'sending'"
    }
}
{
    "error": {
        "<required key>": "<required key> field is required"
        ...
        ...
        ...
    }
}
Previous유저 마이페이지Next댓글

Last updated 5 years ago

Was this helpful?