FI-1223: Expose multiple software versions at /version endpoint #62
Add this suggestion to a batch that can be applied as a single commit.
This suggestion is invalid because no changes were made to the code.
Suggestions cannot be applied while the pull request is closed.
Suggestions cannot be applied while viewing a subset of changes.
Only one suggestion per line can be applied in a batch.
Add this suggestion to a batch that can be applied as a single commit.
Applying suggestions on deleted lines is not supported.
You must change the existing code in this line in order to create a valid suggestion.
Outdated suggestions cannot be applied.
This suggestion has been applied or marked resolved.
Suggestions cannot be applied from pending reviews.
Suggestions cannot be applied on multi-line comments.
Suggestions cannot be applied while the pull request is queued to merge.
Suggestion cannot be applied right now. Please check back later.
Summary
Updates the
/version
endpoint to return a JSON containing the version numbers of both this wrapper as well as the version of the HL7 validator. Previously this was just text of the wrapper version number.Sample result:
This PR replaces #42 mostly because that one was kind of a mess in terms of branch structure, but also it created a new route, and it called the wrong function to get a version number so it didn't actually return the right number for the HL7 validator.
In a few places I refer to this as "JSON containing the version numbers of software" so we could add more at some point if we want to and we don't have to rename/change docs again/etc. Though I don't have any reason to expect we'll actually need to do that.
Testing Guidance
Run the app and confirm a
GET /version
returns a JSON both software versionsNote there are two other changes associated with this where other tools read the version string: