I'm trying to test the swagger login API, and it displays a 404 Error: Not Found. I'm using passport authentication for login. Please help me to solve this issue.
Used swagger comments:
/**
* @OA\Post(
* path="api/auth/login",
* tags={"Login"},
* summary="Login",
* operationId="login",
*
* @OA\Parameter(
* name="email",
* in="query",
* required=true,
* @OA\Schema(
* type="string"
* )
* ),
* @OA\Parameter(
* name="password",
* in="query",
* required=true,
* @OA\Schema(
* type="string"
* )
* ),
* )
**/
Request curl:
curl -X POST "http://localhost/minidmsapiapi/auth/login?email=info%40vibhaa.in&password=password" -H "accept: application/json" -H "X-CSRF-TOKEN: WBZZ8H8OEiQzZJe2VEMviscfZKehbExrkeQD4LW4"
Request url:
http://localhost/minidmsapiapi/auth/login?email=info%40vibhaa.in&password=password