회원가입
Request fields
| Path | Type | Description |
|---|---|---|
|
|
회원가입 ID |
|
|
회원가입 비밀번호 |
|
|
회원가입 이름 |
HTTP request
POST /members HTTP/1.1
Content-Type: application/json;charset=UTF-8
Accept: application/json
Content-Length: 91
Host: localhost:8080
{
"username" : "join-username",
"password" : "join-password!",
"name" : "join-name"
}
Response fields
| Path | Type | Description |
|---|---|---|
|
|
요청 성공 여부 |
Example response
HTTP/1.1 201 Created
Vary: Origin
Vary: Access-Control-Request-Method
Vary: Access-Control-Request-Headers
Content-Type: application/json
X-Content-Type-Options: nosniff
X-XSS-Protection: 1; mode=block
Cache-Control: no-cache, no-store, max-age=0, must-revalidate
Pragma: no-cache
Expires: 0
X-Frame-Options: DENY
Content-Length: 22
{
"success" : true
}
아이디 중복 확인
Request parameters
| Parameter | Description |
|---|---|
|
중복 확인을 하려는 아이디 |
HTTP request
GET /members/exist/username?username=unique-username HTTP/1.1
Content-Type: application/json;charset=UTF-8
Accept: application/json
Host: localhost:8080
Response fields
| Path | Type | Description |
|---|---|---|
|
|
요청 성공 여부 |
|
|
중복 여부 |
Example response
HTTP/1.1 200 OK
Vary: Origin
Vary: Access-Control-Request-Method
Vary: Access-Control-Request-Headers
Content-Type: application/json
X-Content-Type-Options: nosniff
X-XSS-Protection: 1; mode=block
Cache-Control: no-cache, no-store, max-age=0, must-revalidate
Pragma: no-cache
Expires: 0
X-Frame-Options: DENY
Content-Length: 40
{
"success" : true,
"data" : false
}
회원 조회
Path parameters
| Parameter | Description |
|---|---|
|
조회하려는 사용자 아이디 |
HTTP request
GET /members/user HTTP/1.1
Content-Type: application/json;charset=UTF-8
Accept: application/json
Host: localhost:8080
Response fields
| Path | Type | Description |
|---|---|---|
|
|
요청 성공 여부 |
|
|
조회한 이용자 아이디 |
|
|
조회한 이용자 이름 |
Example response
HTTP/1.1 200 OK
Vary: Origin
Vary: Access-Control-Request-Method
Vary: Access-Control-Request-Headers
Content-Type: application/json
X-Content-Type-Options: nosniff
X-XSS-Protection: 1; mode=block
Cache-Control: no-cache, no-store, max-age=0, must-revalidate
Pragma: no-cache
Expires: 0
X-Frame-Options: DENY
Content-Length: 90
{
"success" : true,
"data" : {
"username" : "user",
"name" : "test-name"
}
}