오픈 프로필 리스트 조회 - DevCamp2Flame/FlameTalk_Server GitHub Wiki

Open Profile List get API

Request

Method

GET

URL

/api/membership/open-profile

Header

Method Parameter Description
Content-Type application/json
token {token} access token값

Response

Header

Method Parameter Description
statusCode {statusCode} http 상태 코드 값

Body

Field Type Description
code Integer 응답 코드
message String 응답 메세지
data Object data 참고

data

Field Type Description
userId String 유저 id
openProfiles List openProfiles 참고

openProfiles

Field Type Description
openProfileId Long 오픈 프로필 id
nickname String 오픈 프로필 닉네임
imageUrl String 오픈 프로필 사진 S3 url
description String 오픈 프로필 상태 메세지
createdDate LocalDateTime 오픈 프로필 생성된 날짜
updatedDate LocalDateTime 오픈 프로필 수정한 날짜

SUCCESS example

{
    "status": 200,
    "messsage": "오픈 프로필 리스트 조회 성공",
    "data": {
        "userId": "1643163512893324414",
        "openProfiles": [
            {
                "openProfileId": 1,
                "nickname": "오픈 플레임",
                "imageUrl": "https://flametalk-bucket.s3.ap-northeast-2.amazonaws.com/profile/flametalk_a_20222621172609.JPG",
                "description": "아자아자 화이자!",
                "createdDate": "2022-01-14T10:52:39",
                "updatedDate": "2022-01-19T10:52:39"
            },
            {
                "openProfileId": 2,
                "nickname": "감귤 농장",
                "imageUrl": "https://flametalk-bucket.s3.ap-northeast-2.amazonaws.com/profile/flametalk_a_20222621172609.JPG",
                "description": "감귤 역대 최저가",
                "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": 400,
    "message": "존재하지 않는 유저입니다.",
    "error": "NOT_FOUND",
    "code": "USER_NOT_FOUND",
    "timestamp": "2022-01-18T19:30:16.3072905",
}