जब मैं इसे खोलता हूं तो सभी ऑपरेशन ध्वस्त हो जाते हैं और मैं इसे डिफ़ॉल्ट रूप से विस्तारित करना चाहता हूं।स्वैगर यूआई - मैं डिफ़ॉल्ट रूप से सभी परिचालनों का विस्तार कैसे कर सकता हूं?
क्या कोई ऐसी संपत्ति है जिसे मुझे प्राप्त करने के लिए बदलने की आवश्यकता है?
@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);
}
}
बिल्कुल वही जो मैं खोज रहा था। धन्यवाद। – Gemasoft