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

[Feature] Alternative listing of services #345

Closed
fmigneault opened this issue Aug 25, 2020 · 0 comments
Closed

[Feature] Alternative listing of services #345

fmigneault opened this issue Aug 25, 2020 · 0 comments
Assignees
Labels
feature New feature to be developed
Milestone

Comments

@fmigneault
Copy link
Collaborator

As of latest versions, GET /services returns services nested under their respective service-type, which are then again provided under each element's service_type field.
There is therefore redundancy of information, but even more, this format makes it hard to parse since one always needs to loop service-type keys to then exact sub-services keys, to finally obtain a flat list of "service" objects.

A query parameter list=true|false should be added to render the same information as flat list of service objects.
Original format must still be returned for backward compatibility (an avoid massive rewrites), but the new flag could help skipping a few steps by requesting user that wants it as such.

@fmigneault fmigneault added the feature New feature to be developed label Aug 25, 2020
@fmigneault fmigneault self-assigned this Aug 25, 2020
@fmigneault fmigneault added this to the 2.x.x milestone Aug 25, 2020
fmigneault added a commit that referenced this issue Aug 25, 2020
fmigneault added a commit that referenced this issue Aug 25, 2020
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
feature New feature to be developed
Projects
None yet
Development

No branches or pull requests

1 participant