OA\Post
|
(
path="/admin/auth/login",
tags={"用户验证相关接口"},
summary=" 用户登录",
security={
{"basicAuth"={}}
},
@OA\RequestBody(
@OA\MediaType(
mediaType="application/x-www-form-urlencoded",
@OA\Schema(
@OA\Property(description="租户", property="domain", type="string"),
@OA\Property(description="用户名", property="user_name", type="string"),
@OA\Property(description="密码", property="password", type="string"),
@OA\Property(description="grant_type", property="grant_type", type="string",default="client_credentials"),
required={"user_name","password"})
)
),
@OA\Response(
response=200,
description="A list with products"
)
)
|