Skip to content
New issue

Have a question about this project? # for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “#”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? # to your account

Enhance the endpoint to list existing files of the configuration server with the possibility to specify a version #894

Closed
mariusoe opened this issue Aug 5, 2020 · 0 comments · Fixed by #905
Assignees
Labels
area/config-server enhancement New feature or request

Comments

@mariusoe
Copy link
Member

mariusoe commented Aug 5, 2020

The configuration server offers the possibility to list all existing folders and configuration files of the workspace branch (which is used by the UI for example). In this case, the current status of the workspace branch is always used as a basis.

In this ticket this endpoint should be extended so that a specific version can be specified (based on the commit ID) to which the result refers. This should make it possible to get the content of the workspace branch from a specific version (commit). It should be possible to specify the ID using a request parameter called version.

Example: /api/v1/directories?version=e3004bed2cf2ba75a4d49d5383919223be58bc5f

By default, the most current version of the workspace branch should be used (for example, if no version parameter is specified).

It should also be possible to fetch the current content of the configuration server's live branch. For this purpose, a special verison id can be reserved, e.g. `live', which causes the content of the current live branch to be returned.

Example: /api/v1/directories?version=live

@mariusoe mariusoe added area/config-server enhancement New feature or request labels Aug 5, 2020
@fylip97 fylip97 self-assigned this Aug 6, 2020
mariusoe added a commit that referenced this issue Aug 12, 2020
… to specify a version (#905)

Co-authored-by: Marius Oehler <marius.oehler@novatec-gmbh.de>
# for free to join this conversation on GitHub. Already have an account? # to comment
Labels
area/config-server enhancement New feature or request
Projects
None yet
2 participants