Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

[issues#2318]Add Info to GroupedOpenAPI properties #2551

Merged
merged 1 commit into from
Mar 27, 2024

Conversation

23557544
Copy link

I checked issue #2318 and added relevant configuration for Info in the GroupedOpenAPI class. Please merge the code.

@bnasslahsen
Copy link
Contributor

@23557544,

Could you add the related Test for your PR, so we can merge it ?

@23557544
Copy link
Author

You can add the following configurations to the application.properties file and then start the server for verification.
springdoc.group-configs[0].group=demo
springdoc.group-configs[0].display-name=Example Interfaces
springdoc.group-configs[0].packages-to-scan[0]=cn.codest.server.common
springdoc.group-configs[0].api-info.title=Example Interfaces
springdoc.group-configs[0].api-info.description=List of Example Interfaces
springdoc.group-configs[0].api-info.version=v1.0
springdoc.group-configs[0].api-info.termsOfService=http://localhost:8080/
springdoc.group-configs[0].api-info.license.name=Apache 2.0
springdoc.group-configs[1].group=user
springdoc.group-configs[1].display-name=User Interfaces
springdoc.group-configs[1].packages-to-scan[0]=cn.codest.server.user
springdoc.group-configs[1].api-info.title=User Interfaces
springdoc.group-configs[1].api-info.description=List of User Interfaces
springdoc.group-configs[1].api-info.version=v1.0
springdoc.group-configs[1].api-info.termsOfService=http://localhost:8080/
springdoc.group-configs[1].api-info.license.name=Apache 2.0

@codespearhead
Copy link
Contributor

codespearhead commented Mar 27, 2024

@23557544 Is this a fix for #2318 ? If so, can you link this PR to that issue?

Let us know if you need help writing automated tests.

@bnasslahsen bnasslahsen merged commit 80d8e0c into springdoc:main Mar 27, 2024
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

3 participants