In the Swagger user interface, how to configure the ui input user interface (model outline interface)

I use "swagger UI" with Swagger 2.0 in a C # .Net application and show Get, Post, Delete endpoints.

For Post, I pass the "model diagram" as the body (input parameter).

It is difficult to use a single text field to enter a class object.

Is it possible to configure only the body user interface ...... as separate input fields for all parameters in the class object (model diagram)?

SO, that for the post method with the model scheme parameter, the user interface will be a separate text field for all parameters of the class object (model scheme).

+5
source share
1 answer

Did you notice that clicking on the Example value in the Data Type column actually fills the body value with the contents of the default object? This is the beginning, not to print everything.

However, you can also override the current Swagger user interface by modifying the existing view content to match the text-area , which will be converted to a custom parser that displays property text fields instead of a single text field.

0
source

All Articles