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

Provide a hook point to modify the /metadata/config response #1618

Closed
mhalbritter opened this issue Jan 23, 2025 · 1 comment
Closed

Provide a hook point to modify the /metadata/config response #1618

mhalbritter opened this issue Jan 23, 2025 · 1 comment

Comments

@mhalbritter
Copy link
Contributor

See #1580.

@mhalbritter
Copy link
Contributor Author

There's already a way: Subclass InitializrMetadata, add the fields/getters you want, then create your own InitializrMetadataProvider and return your InitializrMetadata subclass. The resulting object will be returned from io.spring.initializr.web.controller.ProjectMetadataController#config (which handles /metadata/config) and Spring MVC will serialize it to JSON.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

No branches or pull requests

1 participant