프로필 삭제 - DevCamp2Flame/FlameTalk_Server GitHub Wiki

Profile delete API

Request

Method

DELETE

URL

/api/membership/profile/{profileId}

Header

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

Path Variable

Parameter Type Description Required
profileId Long 삭제할 프로필 id Y

Response

Header

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

Body

Field Type Description
code Integer 응답 코드
message String 응답 메세지

SUCCESS example

{
    "status": 200,
    "messsage": "프로필 삭제 성공"
}

Error Code

Code Error Messsage
400 Bad Request
401 Unauthorized
403 Forbidden
404 File Not Found
500 Server Error

FAIL example

{
    "status": 404,
    "message": "삭제 권한이 없는 프로필입니다.",
    "error": "FORBIDDEN",
    "code": "DELETE_FORBIDDEN_PROFILE",
    "timestamp": "2022-01-18T19:30:16.3072905",
}