-
Notifications
You must be signed in to change notification settings - Fork 50
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Merge pull request #507 from nasa/harmony-1580
HARMONY-1580: Document the versions endpoint
- Loading branch information
Showing
3 changed files
with
45 additions
and
13 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -16,4 +16,6 @@ | |
|
||
!!!include(stac.md)!!! | ||
|
||
!!!include(cloud-access.md)!!! | ||
!!!include(cloud-access.md)!!! | ||
|
||
!!!include(versions.md)!!! |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,30 @@ | ||
### <a name="versions-details"></a> Getting the versions of images used in each of the Harmony backend service chains | ||
|
||
Using the `versions` endpoint, a user can get a list of all of the docker images and versions used in harmony backend service chains. Service providers use this endpoint to verify the versions of their services deployed to an environment. | ||
|
||
#### Get backend service version information | ||
|
||
``` | ||
{{root}}/versions | ||
``` | ||
**Example {{exampleCounter}}** - Getting backend service versions using the `versions` API | ||
|
||
The returned JSON response is an array of service version information with the following fields: | ||
|
||
| field | description | | ||
|-------|-----------------------------------------------------------------------------------------------------------------------------------| | ||
| name | The name of the backend service chain as defined in [services.yml](https://github.com/nasa/harmony/blob/main/config/services.yml). | | ||
| images | An array of the images used in the service chain. | | ||
|
||
Each image has the following fields: | ||
| field | description | | ||
|-------|--------------------------------------------------------------------| | ||
| image | The name of the docker image. | | ||
| tag | The docker image tag. | | ||
| lastUpdated | (optional) The time the image was last updated if available. | | ||
| imageDigest | (optional) The image digest if available. | | ||
|
||
--- | ||
**Table {{tableCounter}}** - Harmony versions response fields |