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

Add a GET /config Route #22

Merged
merged 2 commits into from
Jun 20, 2024
Merged

Add a GET /config Route #22

merged 2 commits into from
Jun 20, 2024

Conversation

jameskbride
Copy link
Owner

Context

This PR adds a convenience endpoint at GET /config to retrieve the runtime configuration during development and testing.

Changes

  • Expose GET /config.
  • Add logging at start-up to indicate the /health and /config endpoint locations.

Testing and Validation Steps

  1. Start the application via ./gradlew run.
  2. Open http://localhost:9911/config in a browser (or make a GET /config request via cURL, POSTman, Insomnia, whatever).
  3. ✅ Validate that the current JSON config is returned.
  4. Make a change to the config: aws sns create-topic --endpoint-url http://localhost:9911 --name another-topic
  5. Refresh the browser.
  6. ✅ Validate that the config is updated.

@jameskbride jameskbride merged commit 1f5f3dc into main Jun 20, 2024
1 check passed
@jameskbride jameskbride deleted the add-config-route branch June 20, 2024 12:28
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.

1 participant