오픈 프로필 삭제 - DevCamp2Flame/FlameTalk_Server GitHub Wiki
Open Profile delete API
Request
Method
DELETE
URL
/api/membership/open-profile/{openProfileId}
Header
| Method |
Parameter |
Description |
| Content-Type |
application/json |
|
| token |
{token} |
access token값 |
Path Variable
| Parameter |
Type |
Description |
Required |
| openProfileId |
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 |
| 404 |
File Not Found |
| 500 |
Server Error |
FAIL example
{
"status": 404,
"message": "존재하지 않는 오픈 프로필 입니다.",
"error": "NOT_FOUND",
"code": "OPEN_PROFILE_NOT_FOUND",
"timestamp": "2022-01-18T19:30:16.3072905",
}