api test

테스트 api 서버 개발문서 작성 rest api 서버 테스트 및 정의를 목적으로 한다.
http://10.0.1.104:9000
테스트 api 서버

테스트 api 서버 개발 문서 api 테스트 및 정의서 배포.

/users
GET /users

회원 리스트 조회

Notes

회원 리스트 조회

Request headers

authorization
string optional

access token

Responses

200 OK

정상완료

Headers
access-control-allow-origin
string optional
Body
Array
Object
userId
string

회원 key값

userName
string

이름

userEmail
string

이메일

userAge
string

나이

400 Bad request

잘못된 요청

401 Unauthorized

인증되지 않은 사용자

404 Not found

페이지 없음

500 Internal server error

서버에러

Examples

GET http://127.0.0.1:9000/users HTTP/1.1 


HTTP/1.1 200 OK 

Content-Type: application/json

[
    {
        "userId": "1",
        "userName": "admin",
        "userEmail": "admin@gmail.com",
        "userAge": "10"
    },
    {
        "userId": "2",
        "userName": "bernie",
        "userEmail": "bernie@gmail.com",
        "userAge": "20"
    }
]
/users/{id}
GET /users/{id}

회원 상세 조회

Path variables

id
string required

Responses

200 OK

정상완료

Headers
access-control-allow-origin
string optional
Body
Object
user_name
string

이름

user_email
string

이메일

user_age
string

나이

user_id
string

회원 key값

400 Bad request

잘못된 요청

401 Unauthorized

인증되지 않은 사용자

404 Not found

페이지 없음

500 Internal serve error

서버에러

Examples

GET http://127.0.0.1:9000/users/2 HTTP/1.1 


HTTP/1.1 200 OK 

Content-Type: application/json

{
    "user_name": "bernie",
    "user_email": "bernie@gmail.com",
    "user_age": "20",
    "user_id": "2"
}