Login

POST: **http://localhost:8888/auth/login**

#Request Body

{   
    "username":"[email protected]",
    "password":"12345678"
}

#Response Body

{
    "token": "eyJhbGciOiJIUzUxMiJ9.eyJzdWIiOiJ2aXNoYWw5c2VwdEBnbWFpbC5jb20iLCJleHAiOjE2Nzk5MTY5MDgsImlhdCI6MTY3OTg4ODEwOH0.ZRi9ZyD_GL7fq0ng0MlfiyQMcP3ZFjYYg_JQxJOxxq28kwBdDEbpvxW4FPEkP-ER-O6cc6MhN-q3jYuoAU6xxw",
    "user": {
        "id": 1,
        "name": "vishal",
        "email": "[email protected]",
        "roles": [
            {
                "id": 102,
                "name": "STUDENT_USER"
            }
        ]
    }
}

POST : http://localhost:8888/auth/add/student

{
    "name": "Yogesh Saini",
    "email": "[email protected]",
    "password":"12345678"

}

#Response Body

{
    "id": 19,
    "name": "Yogesh Saini",
    "email": "[email protected]",
    "roles": [
        {
            "id": 102,
            "name": "STUDENT_USER"
        }
    ]
}

POST : http://localhost:8888/auth/users/bulk-create-byCSV

Request Body

In Body, we have pass Key Value, where the Key name will be "file" and
 in value, there will be a CSV file.

#Response Body