Skip to content

Add bus-env REST controller for multiple properties - #335

Open
yashdotdev13 wants to merge 1 commit into
spring-cloud:5.0.xfrom
yashdotdev13:issue-122-bus-env-multiple-properties
Open

yashdotdev13 wants to merge 1 commit into
spring-cloud:5.0.xfrom
yashdotdev13:issue-122-bus-env-multiple-properties

Conversation

@yashdotdev13

@yashdotdev13 yashdotdev13 commented Sep 21, 2026

Copy link
Copy Markdown

Summary

This PR adds a REST controller for the /actuator/bus-env endpoint that supports updating multiple environment properties in a single request.

Changes

  • Add EnvironmentBusController using @RestControllerEndpoint.
  • Accept multiple properties through @RequestParam Map<String, String>.
  • Replace the existing EnvironmentBusEndpoint registration with the new REST controller.
  • Add unit coverage for publishing multiple properties.
  • Add integration coverage for the /actuator/bus-env HTTP endpoint.

Testing

  • EnvironmentBusControllerTests
  • EnvironmentBusControllerIntegrationTests

Both tests pass successfully.

Fixes #122

Signed-off-by: 98001yash <yashchauhan.gaya@gmail.com>

@ryanjbaxter ryanjbaxter left a comment

Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Why not add this to the existing endpoint? We should not remove the existing one at all.

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

Projects

None yet

Development

Successfully merging this pull request may close these issues.

3 participants