-
Notifications
You must be signed in to change notification settings - Fork 141
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
Endpoint to retrieve tags under a category with descriptions #704
Comments
Seems right now you really need 2 requests. @abellotti : can you, please, take a look if we are not wrong? |
https://www.manageiq.org/docs/reference/latest/api/overview/query#expanding-collection
Here we have 1:n and after that a 1:1 so this is afaik unsupported. |
maybe this:
|
@abellotti yes! It works as expected. But what if I want all tags grouped by all categories, i.e. for the 2 dropdowns of the new tagging component? |
This issue has been automatically marked as stale because it has not been updated for at least 3 months. If you can still reproduce this issue on the current release or on Thank you for all your contributions! More information about the ManageIQ triage process can be found in the traige process documentation. |
I need a way to retrieve tags under a given category with tag descriptions (which are actually used across the UI as the title of the given tag). For now I have this request, that returns me with the tags under a category:
But the description is not part of the expanded tags, however, I found a solution to fire a second request that returns me the descriptions as well:
However, the request building is a little messy as I have to specify all the tag IDs one by one and then merge the result. So my question: is there a way to do this in a single request, by specifying a magic attribute that adds the
description
field to the expanded tags?@martinpovolny @abellotti
The text was updated successfully, but these errors were encountered: