Skip to content

회원들 정보 가져오기 (테스트용)

boong_u edited this page Sep 14, 2021 · 2 revisions

회원들 정보 가져오기 (테스트용)

PATH

GET : /api/users/login

Request Header

Content-Type: application/json
x-auth-token : 로그인 시 받는 jwt token (Ex:eyJhbGciOiJIUzI1NiIsInR5cCI6IkpXVCJ9.eyJ1c2VyIjp7ImlkIjoiNjExMGNjMmFjNTBjZmY2YzdjOGIxZTZlIn0sImlhdCI6MTYyODU2NjQxMiwiZXhwIjoxNjI4NjAyNDEyfQ.SWMPObKmGjQcQOUgvHF1HNupO2OovuOHsCXz7O0HZck)

Request Params

params Example Description Default
None None None None

Request Body

None  

Response

Example URL : {{baseURL}}/api/users/login

Success : 200

{
    "data": [
        {
            "_id": "6110cc2ac50cff6c7c8b1e6d",
            "identity": "achrvv@sookmyung.ac.kr",
            "social": "google",
            "createdDate": "2021-08-09T06:33:14.462Z",
            "lastLoginDate": "2021-08-09T06:33:14.462Z",
            "__v": 0
        },
        {
            "_id": "6110cc2ac50cff6c7c8b1e6e",
            "identity": "boong_a@kakao.com",
            "social": "kakao",
            "createdDate": "2021-08-09T06:33:14.463Z",
            "lastLoginDate": "2021-08-09T06:33:14.463Z",
            "__v": 0
        },
        {
            "_id": "6110cc2ac50cff6c7c8b1e6f",
            "identity": "insong1216@gmail.com",
            "social": "google",
            "createdDate": "2021-08-09T06:33:14.463Z",
            "lastLoginDate": "2021-08-09T06:33:14.463Z",
            "__v": 0
        },
        {
            "_id": "6110cc2ac50cff6c7c8b1e70",
            "identity": "1804332457",
            "social": "kakao",
            "createdDate": "2021-08-09T06:33:14.464Z",
            "lastLoginDate": "2021-08-09T06:33:14.464Z",
            "__v": 0
        }
    ]
}

Server Error : 500

{
  "error" : "Internal Server Error"
}