가입 신청하기
REQUEST
POST /api/subscription HTTP/1.1
Content-Type: application/json;charset=UTF-8
Content-Length: 130
Host: localhost:8080
{
"groupId" : 1,
"message" : "그룹에 가입하고 싶어요. 홍대 라멘집과 돈까스집은 모두 가봤습니다."
}
Path | Type | Description |
---|---|---|
|
|
그룹 아이디 |
|
|
가입 신청 메시지 |
RESPONSE
{
"success" : true,
"result" : {
"subscriptionId" : 1
}
}
Path | Type | Description |
---|---|---|
|
|
성공 여부 |
|
|
가입 신청 아이디 |
가입 신청 상태 변경
REQUEST
PATCH /api/subscription/1/status HTTP/1.1
Content-Type: application/json;charset=UTF-8
Content-Length: 25
Host: localhost:8080
{
"status" : "ACCEPT"
}
Parameter | Description |
---|---|
|
가입신청 아이디 |
Path | Type | Description |
---|---|---|
|
|
|
RESPONSE
{
"success" : true,
"result" : true
}
Path | Type | Description |
---|---|---|
|
|
성공 여부 |
|
|
성공 여부 |
가입 신청한 유저 조회
REQUEST
GET /api/subscription/users?groupId=1 HTTP/1.1
Content-Type: application/json;charset=UTF-8
Host: localhost:8080
Parameter | Description |
---|---|
|
그룹 아이디 |
RESPONSE
{
"success" : true,
"result" : [ {
"subscriptionId" : 1,
"applicantId" : "43f28ebf-8921-477c-8089-dfa50d587697",
"applicantNickname" : "유저1",
"message" : "그룹에 가입하고 싶어요. 홍대 라멘집과 돈까스집은 모두 가봤습니다.",
"createdAt" : "2023-07-09T22:15:18.176497"
}, {
"subscriptionId" : 2,
"applicantId" : "1ee2aee3-1410-4f00-8a4e-447459bf7c90",
"applicantNickname" : "유저2",
"message" : "아들아 엄마다",
"createdAt" : "2023-07-09T22:15:18.176517"
} ]
}
Path | Type | Description |
---|---|---|
|
|
성공 여부 |
|
|
가입 신청 아이디 |
|
|
가입 신청자 아이디 |
|
|
가입 신청자 닉네임 |
|
|
가입 신청 메시지 |
|
|
신청 시간 |