회원가입
HTTP request
POST /member HTTP/1.1
Content-Type: application/json;charset=UTF-8
Content-Length: 157
Host: localhost:8080
{
"email" : "dev@Dev.com",
"address" : "서울 마포구",
"nickname" : "개발자2",
"provider" : "GOOGLE",
"imgNo" : 1,
"imgUrl" : "/profile"
}
HTTP response
HTTP/1.1 200 OK
Content-Type: application/json;charset=UTF-8
Content-Length: 20
{
"status" : 200
}
회원정보 조회
HTTP request
GET /member/1 HTTP/1.1
Content-Type: application/json;charset=UTF-8
Authorization: "access token"
Host: localhost:8080
HTTP response
HTTP/1.1 200 OK
Content-Type: application/json;charset=UTF-8
Content-Length: 174
{
"id" : 1,
"profile" : "/image",
"name" : "rexDev",
"location" : "서울 마포구",
"activity" : {
"document" : 6,
"comment" : 4,
"sanction" : 2
}
}
회원정보 수정
HTTP request
PATCH /member HTTP/1.1
Content-Type: application/json;charset=UTF-8
Authorization: "access token"
Content-Length: 92
Host: localhost:8080
{
"name" : "코린이",
"image" : {
"imageUrl" : "/image2",
"imageKey" : 2
}
}
HTTP response
HTTP/1.1 200 OK
Content-Type: application/json;charset=UTF-8
Content-Length: 20
{
"status" : 200
}
Response fields
| Path | Type | Description |
|---|---|---|
|
|
status |
닉네임 중복확인
HTTP request
GET /member/validate?nickname=%EC%BD%94%EB%A6%B0%EC%9D%B4 HTTP/1.1
Content-Type: application/json;charset=UTF-8
Host: localhost:8080
HTTP response
HTTP/1.1 200 OK
Content-Type: application/json;charset=UTF-8
Content-Length: 25
{
"duplicated" : true
}
Response fields
| Path | Type | Description |
|---|---|---|
|
|
duplicated |
회원탈퇴
HTTP request
DELETE /member HTTP/1.1
Content-Type: application/json;charset=UTF-8
Authorization: "access token"
Host: localhost:8080
HTTP response
HTTP/1.1 200 OK
Content-Type: application/json;charset=UTF-8
Content-Length: 20
{
"status" : 200
}
Response fields
| Path | Type | Description |
|---|---|---|
|
|
status |