api test
테스트 api 서버 개발문서 작성
rest api 서버 테스트 및 정의를 목적으로 한다.
http://127.0.0.1:9000
GET
/users
회원 리스트 조회
Notes
get users
Request headers
authorization
string
optional
access token
Responses
200
OK
정상완료
Headers
access-control-allow-origin
string
optional
Body
Object
name
string
email
string
400
Bad request
잘못된 요청
401
Unauthorized
인증되지 않은 사용자
404
Not found
페이지 없음
500
Internal server error
서버에러
GET
/users/
{id}
회원 상세 조회
Path variables
id
string
required
Responses
200
OK
정상완료
Headers
access-control-allow-origin
string
optional
Body
Object
name
string
email
string
400
Bad request
잘못된 요청
401
Unauthorized
인증되지 않은 사용자
404
Not found
페이지 없음
500
Internal serve error
서버에러
Examples
GET http://127.0.0.1:9000/users/1 HTTP/1.1
GET http://127.0.0.1:9000/users/2 HTTP/1.1
GET http://127.0.0.1:9000/users/3 HTTP/1.1