User List
MyUser object의 목록을 돌려줍니다.
GET Parameter로 page, group을 받을 수 있습니다.
page로 Pagination 번호를 받을 수 있으며, 주어지지 않을 경우 1페이지로 취급됩니다.
group으로 그룹의 primary key를 받을 수 있으며, 해당 pk를 가진 그룹에 가입한 사용자의 목록을 보여줍니다. 주어지지 않을 경우 전체 사용자 목록을 보여줍니다.
URL
/member/
Method
GET
URL Params
Key | Description | Value | Type | Require |
---|---|---|---|---|
page | 페이지 번호 | Page number | Integer | False |
group | 그룹의 pk | Group primary key | Integer | False |
Success Response
HTTP Status code200
Content
{
"count": 15, # 전체 user
"next": "http://localhost:8000/api/member/?page=2",
"previous": null,
"results": [
{
"pk": 26,
"email": "[email protected]",
"nickname": "121112121",
"username": "user",
"profile_img": "http://localhost:8000/static/images/no_profile.png"
},
{
"pk": 24,
"email": "[email protected]",
"nickname": "1122",
"username": "",
"profile_img": "http://localhost:8000/static/images/no_profile.png"
},
]
Error response
Page does not exist error
HTTP Status code404
Content
{
"detail": "Invalid page."
}