프로필 생성 - DevCamp2Flame/FlameTalk_Server GitHub Wiki
Profile create API
Request
Method
POST
URL
/api/membership/profile
Header
| Method |
Parameter |
Description |
| Content-Type |
application/json |
|
| ACCESS-TOKEN |
{token} |
access token값 |
Body
| Field |
Type |
Description |
Required |
| userId |
String |
유저 id |
Y |
| imageUrl |
String |
프로필 사진 url |
N |
| bgImageUrl |
String |
프로필 배경 사진 url |
N |
| sticker |
JSON Array |
프로필에 사용된 스티커 리스트. sticker 참고 |
N |
| description |
String |
프로필 상태 메세지 |
N |
| isDefault |
boolean |
기본 프로필 여부 |
Y |
sticker
| Field |
Type |
Description |
Required |
| stickerId |
Integer |
스티커 id |
Y |
| positionX |
Double |
스티커 x 좌표 |
Y |
| positionY |
Double |
스티커 y 좌표 |
Y |
Response
Header
| Method |
Parameter |
Description |
| statusCode |
{statusCode} |
|
| Location |
api/profile/{profileId} |
성공한 경우 생성된 프로필 id |
Body
| Field |
Type |
Description |
| code |
Integer |
응답 코드 |
| message |
String |
응답 메세지 |
| id |
Long |
프로필 id |
SUCCESS example
{
"status": 200,
"messsage": "프로필 생성 성공"
}
Error Code
| Code |
Error Messsage |
| 400 |
Bad Request |
| 401 |
Unauthorized |
| 500 |
Server Error |
FAIL example
{
"status": 400,
"message": "잘못된 요청입니다.",
"error": "BAD_REQUEST",
"code": "BAD_REQUEST",
"timestamp": "2022-01-18T19:30:16.3072905",
}