-
Notifications
You must be signed in to change notification settings - Fork 3
[POST] 그룹 신청(동관)
dk-master edited this page Jul 17, 2020
·
14 revisions
- 동관
Issue #19
메소드 경로 짧은 설명 POST /auth/groups/apply 그룹 신청
Content-Type: application/json
token: eyJhbGciOiJIUzI1NiIsInR5cCI6IkpXVCJ9.eyJpZHgiOjMsIm5hbWUiOiLstZzsmIHtm4giLCJpYXQiOjE1OTM2OTkxODMsImV4cCI6MTU5NjI5MTE4MywiaXNzIjoicGxhY2VwaWMifQ.rmFbeBfviyEzbMlMM4b3bMMiRcNDDbiX8bQtwL_cuN0
key | 설명 | 타입 | 비고 |
---|---|---|---|
userIdx | 고유 유저 번호 | INT | 토큰값만 전달해주시면 됩니다 |
{baseUrl}/auth/groups/apply
key | 설명 | 타입 | 비고 |
---|---|---|---|
part | 소속 | String | |
phoneNumber | 전화번호 | String | |
groupIdx | 그룹고유번호 | Int |
- header statusCode: 200
{
"status": 200,
"success": true,
"message": "그룹 신청 성공",
"data": {
"groupName": "group5Name",
"groupImage": "https://user-images.githubusercontent.com/61861809/86872667-cf076b80-c117-11ea-9e63-a5ab1b4efbf6.png"
}
}
- 서버 내부 에러 header statusCode: 500
{
"status": 500,
"success": false,
"message": "서버 내부 에러"
}
- CALL_GROUP_FAIL
{
"status": 400,
"success": false,
"message": "해당 그룹이 존재하지 않습니다."
}
- ALREADY_GROUP_USER
{
"status": 400,
"success": false,
"message": "이미 가입된 그룹입니다."
}