그룹 생성
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 |
---|---|---|
|
|
그룸 이름 |
|
|
공개 여부 |
RESPONSE
{
"success" : true,
"result" : {
"id" : 1,
"groupName" : "첫번째 그룹"
}
}
Path | Type | Description |
---|---|---|
|
|
성공 여부 |
|
|
그룹 아이디 |
|
|
그룹 이름 |
그룹 탈퇴
REQUEST
DELETE /api/groups/1/users HTTP/1.1
Content-Type: application/json;charset=UTF-8
Host: localhost:8080
Parameter | Description |
---|---|
|
그룹 아이디 |
RESPONSE
{
"success" : true,
"result" : true
}
Path | Type | Description |
---|---|---|
|
|
성공 여부 |
|
|
성공 여부 |
그룹 검색
REQUEST
GET /api/groups?groupName=gr&ownerNickname=us HTTP/1.1
Content-Type: application/json;charset=UTF-8
Host: localhost:8080
Parameter | Description |
---|---|
|
그룹 이름 |
|
그룹 소유자 닉네임 |
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 |
---|---|---|
|
|
성공 여부 |
|
|
그룹 아이디 |
|
|
그룹 이름 |
|
|
그룹 소유자 닉네임 |
|
|
최근 업데이트 시간 |
유저 그룹 조회
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 |
---|---|---|
|
|
성공 여부 |
|
|
그룹 아이디 |
|
|
그룹 이름 |
|
|
그룹 인원수 |
그룹 소유자 변경
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"
}
Parameter | Description |
---|---|
|
그룹 아이디 |
Path | Type | Description |
---|---|---|
|
|
후임자 아이디 |
RESPONSE
{
"success" : true,
"result" : {
"ownerNickname" : "유저1",
"updatedAt" : "2023-07-09T22:15:16.620203"
}
}
Path | Type | Description |
---|---|---|
|
|
성공 여부 |
|
|
그룹 소유자 닉네임 |
|
|
변경 시간 |