Syed Uzair Uddin
Syed Uzair Uddin

Reputation: 3648

Add new column in responses(Swagger-ui)

I am using Swagger-ui for the api documentation, when i come to responses i want to add a new column of any name in every response,enter image description here screen shot is attached, highlighted text is ok, i want to add a new column at place of the circle. My response JSON is

 "responses" : {
           "400" : {
              "description" : "Invalid ID Supplied"
           },
           "404" : {
              "description" : "Order not found"
           }
        }

how to add new column in it?

Is there any way type of Intellisense provided for Swagger-ui JSON?

Upvotes: 1

Views: 1394

Answers (1)

MrMister
MrMister

Reputation: 2536

You can extend the API Response objects coming off of your API endpoints only as far as the specification goes. In order to display that in the UI, though, you would have to fork the UI project and do as you please. Currently the UI does not seem to be extensible at that point (look for the table headers in the file).

Upvotes: 4

Related Questions