How to change Swagger-UI "Default" Path -


i have tried changing basepath in json file, seems change bottom "baseurl" of swagger-ui. want rid of "default" appears group title of swagger-ui. has been able fix problem? using swagger ~2.0.

the default not path, it's tag.

in swagger 2.0, grouping done using tags. each operation can assigned 0 or more tags. in ui, operation has no tag end under default group.

"/pet/findbystatus": {   "get": {     "tags": [       "pet"     ],     "summary": "finds pets status",     "description": "multiple status values can provided comma seperated strings",     "operationid": "findpetsbystatus",     "consumes": [       "application/xml",       "application/json",       "multipart/form-data",       "application/x-www-form-urlencoded"     ],     "produces": [       "application/xml",       "application/json"     ],     "parameters": [       {         "name": "status",         "in": "query",         "description": "status values need considered filter",         "required": false,         "type": "array",         "items": {           "type": "string"         },         "collectionformat": "multi",         "default": "available",         "enum": [           "available",           "pending",           "sold"         ]       }     ],     "responses": {       "200": {         "description": "successful operation",         "schema": {           "type": "array",           "items": {             "$ref": "#/definitions/pet"           }         }       },       "400": {         "description": "invalid status value"       }     },     "security": [       {         "petstore_auth": [           "write:pets",           "read:pets"         ]       }     ]   } } 

you can see operations has tags property value of "pet", , operation grouped under header.


Comments

Popular posts from this blog

android - MPAndroidChart - How to add Annotations or images to the chart -

javascript - Add class to another page attribute using URL id - Jquery -

firefox - Where is 'webgl.osmesalib' parameter? -