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

Was this helpful?

  1. 마이페이지

유저 마이페이지

show user mypage

GET http://api.phopo.best/api/users/:pk/posts

This endpoint allows you to get free cakes.

Path Parameters

Name
Type
Description

pk

integer

user pk

Query Parameters

Name
Type
Description

action

integer

action value search - 1201 userMyPageList- 1202

Headers

Name
Type
Description

Authentication

string

jwt token ex) 'jwt frFOOW15RF1211d....'

{
    "payload": {
        "user": {
            "nickname": "moon",
            "profile_image": "https://avon-spott-imageserver.s3.ap-northeast-2.amazonaws.com/media/usr/moonlight-4781350_640.jpg"
        },
        "posts": [
            {
                "id": 1578,
                "posts_image": "https://avon-spott-imageserver.s3.ap-northeast-2.amazonaws.com/media/post/dwarf-rabbit-4803684_640_nWH47qS.jpg",
                "latitude": 37.5416283336648,
                "longitude": 127.042383146169
            },
            {
                "id": 1565,
                "posts_image": "https://avon-spott-imageserver.s3.ap-northeast-2.amazonaws.com/media/post/1_q9Hgfbk.jpg",
                "latitude": 37.5601267291583,
                "longitude": 127.070208804561
            }
            ...
            ...
            ...
      
        ],
         "myself": true or false
    },
    "message": "success"
}
{
    "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?