我正在尝试测试swagger登录API,它显示一个404 Error: Not Found
。我正在使用护照认证进行登录。请帮我解决这个问题。
用过的招摇评论:
/**
* @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"
* )
* ),
* )
**/
请求卷曲:
curl -X POST "http://localhost/minidmsapiapi/auth/login?email=info%40vibhaa.in&password=password" -H "accept: application/json" -H "X-CSRF-TOKEN: WBZZ8H8OEiQzZJe2VEMviscfZKehbExrkeQD4LW4"
请求网址:
http://localhost/minidmsapiapi/auth/login?email=info%40vibhaa.in&password=password