修改参数描述

时间:2020-05-26 06:50:40

标签: spring-boot swagger swagger-2.0 swagger-codegen springfox

我在以下swagger json下方,我想更新参数内的description字段,并且我正在使用spring boot并具有依赖项'springfox-swagger2',版本:'2.9.2'

"/recommendations/aggregatedRecommendations": {
            "post": {
                "tags": [
                    "recommendation-controller"
                ],
                "summary": "view aggregated recommendations",
                "operationId": "getAggregatedRecommendationsUsingPOST",
                "consumes": [
                    "application/json"
                ],
                "produces": [
                    "*/*"
                ],
                "parameters": [
                    {
                        "in": "body",
                        "name": "aggregatedRecommendationRequest",
                        "description": "aggregatedRecommendationRequest",
                        "required": true,
                        "schema": {
                            "$ref": "#/definitions/AggregatedRecommendationRequest"
                        }
                    }
                ]

0 个答案:

没有答案