swagger-php我集成到thinkphp中,但是post提交接收不到值

发布于 2022-09-03 09:28:09 字数 945 浏览 28 评论 0

关于文档注释post提交怎么写?看了注释,还是不行??

/**
     * @SWG\Post(
     *     path="/addPets",
     *     tags={"Test"},
     *     operationId="addPets",
     *     summary="Add a new pet to the store",
     *     description="",
     *     consumes={"multipart/form-data"},
     *     produces={"multipart/form-data"},
     *     @SWG\Parameter(
     *         name="name",
     *         in="query",
     *         description="Pet object that needs to be added to the store",
     *         required=false,
     *          paramType="form",
     *         @SWG\Schema(ref="#/definitions/Pet"),
     *     ),
     *     @SWG\Response(
     *         response=405,
     *         description="Invalid input",
     *     ),
     *     security={{"petstore_auth":{"write:pets", "read:pets"}}}
     * )
     */

图片描述

如果你对这篇内容有疑问,欢迎到本站社区发帖提问 参与讨论,获取更多帮助,或者扫码二维码加入 Web 技术交流群。

扫码二维码加入Web技术交流群

发布评论

需要 登录 才能够评论, 你可以免费 注册 一个本站的账号。

评论(1

穿透光 2022-09-10 09:28:09

找了好久,终于知道了 in="formData"

ok

~没有更多了~
我们使用 Cookies 和其他技术来定制您的体验包括您的登录状态等。通过阅读我们的 隐私政策 了解更多相关信息。 单击 接受 或继续使用网站,即表示您同意使用 Cookies 和您的相关数据。
原文