그룹 생성

REQUEST

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

{
  "groupName" : "첫번째 그룹",
  "isPublic" : true
}
Path Type Description

groupName

String

그룸 이름

isPublic

Boolean

공개 여부

RESPONSE

{
  "success" : true,
  "result" : {
    "id" : 1,
    "groupName" : "첫번째 그룹"
  }
}
Path Type Description

success

Boolean

성공 여부

result.id

Number

그룹 아이디

result.groupName

String

그룹 이름

그룹 탈퇴

REQUEST

DELETE /api/groups/1/users HTTP/1.1
Content-Type: application/json;charset=UTF-8
Host: localhost:8080
Table 1. /api/groups/{groupId}/users
Parameter Description

groupId

그룹 아이디

RESPONSE

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

success

Boolean

성공 여부

result

Boolean

성공 여부

그룹 검색

REQUEST

GET /api/groups?groupName=gr&ownerNickname=us HTTP/1.1
Content-Type: application/json;charset=UTF-8
Host: localhost:8080
Parameter Description

groupName

그룹 이름

ownerNickname

그룹 소유자 닉네임

RESPONSE

{
  "success" : true,
  "result" : [ {
    "groupId" : 1,
    "groupName" : "group1",
    "ownerNickname" : "user1",
    "updatedAt" : "2023-07-09T22:15:16.535599"
  }, {
    "groupId" : 2,
    "groupName" : "group2",
    "ownerNickname" : "user2",
    "updatedAt" : "2023-07-09T22:15:16.535625"
  } ]
}
Path Type Description

success

Boolean

성공 여부

result.[].groupId

Number

그룹 아이디

result.[].groupName

String

그룹 이름

result.[].ownerNickname

String

그룹 소유자 닉네임

result.[].updatedAt

String

최근 업데이트 시간

유저 그룹 조회

REQUEST

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

RESPONSE

{
  "success" : true,
  "result" : [ {
    "groupId" : 1,
    "groupName" : "첫번째 그룹",
    "totalUsers" : 1
  } ]
}
Path Type Description

success

Boolean

성공 여부

result.[].groupId

Number

그룹 아이디

result.[].groupName

String

그룹 이름

result.[].totalUsers

Number

그룹 인원수

그룹 소유자 변경

REQUEST

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

{
  "successorId" : "43f28ebf-8921-477c-8089-dfa50d587697"
}
Table 2. /api/groups/{groupId}/owners
Parameter Description

groupId

그룹 아이디

Path Type Description

successorId

String

후임자 아이디

RESPONSE

{
  "success" : true,
  "result" : {
    "ownerNickname" : "유저1",
    "updatedAt" : "2023-07-09T22:15:16.620203"
  }
}
Path Type Description

success

Boolean

성공 여부

result.ownerNickname

String

그룹 소유자 닉네임

result.updatedAt

String

변경 시간