All the operations appear collapsed when I open it and I want it to be expanded by default.
Is there any property I need to change to achieve it?
This is my swagger Bean:
@Configuration
@EnableSwagger2
public class SwaggerConfig {
@Bean
public Docket restApi() {
return new Docket(DocumentationType.SWAGGER_2)
.select()
.paths(regex("/api/.*"))
.build()
.directModelSubstitute(XMLGregorianCalendar.class, Date.class)
.apiInfo(apiInfo())
.useDefaultResponseMessages(false);
}
}