그룹으로 초대하기

REQUEST

POST /api/groups/invites HTTP/1.1
Content-Type: application/json;charset=UTF-8
Content-Length: 76
Host: localhost:8080

{
  "recvUserId" : "43f28ebf-8921-477c-8089-dfa50d587697",
  "groupId" : 1
}
Path Type Description

recvUserId

String

초대할 유저 아이디

groupId

Number

그룹 아이디

RESPONSE

{
  "success" : true,
  "result" : {
    "inviteId" : 1
  }
}
Path Type Description

success

Boolean

성공 여부

result.inviteId

Number

초대 아이디

초대받은 리스트 조회

REQUEST

GET /api/groups/invites HTTP/1.1
Content-Type: application/json;charset=UTF-8
Host: localhost:8080

RESPONSE

{
  "success" : true,
  "result" : [ {
    "inviteId" : 1,
    "nickName" : "유저1",
    "groupName" : "첫번째 그룹"
  } ]
}
Path Type Description

success

Boolean

성공 여부

result.[].inviteId

Number

초대 아이디

result.[].nickName

String

초대한 사람의 닉네임

result.[].groupName

String

초대 그룹 이름

초대 상태 변경

REQUEST

PATCH /api/groups/invites/1/status HTTP/1.1
Content-Type: application/json;charset=UTF-8
Content-Length: 25
Host: localhost:8080

{
  "status" : "ACCEPT"
}
Table 1. /api/groups/invites/{inviteId}/status
Parameter Description

inviteId

초대 아이디

Path Type Description

status

String

WAITING, ACCEPT, REJECT, CANCEL

RESPONSE

{
  "success" : true,
  "result" : true
}
Path Type Description

success

Boolean

성공 여부

result

Boolean

성공 여부