springdoc / springdoc-openapi-gradle-plugin

Library for OpenAPI 3 with spring-boot
https://springdoc.org
Apache License 2.0
148 stars 47 forks source link

Download API Docs from a @SpringBootTest Context #146

Closed Gentoli closed 4 months ago

Gentoli commented 4 months ago

Not particularly sure how to achieve this. This will be convenient for apps require external dependencies on startup, or/and it's not easy or redundant to create a extra profile with everything mocked/excluded.

There should usually a test with @SpringBootTest, that means there is a working fake context. Then MockMvc or a http client can be use to extract the docs.

bnasslahsen commented 4 months ago

@Gentoli,

There are no plans to support this feature

Gentoli commented 4 months ago

@bnasslahsen

Can you elaborate a bit? Is this against the architecture of the plugin? Is the project not planning to take feature request? Are you going to reject PRs if this is implemented?

bnasslahsen commented 4 months ago

@Gentoli,

The project not planning to take feature request. But if you propose a PRs, we would be happy to consider them.