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

Client API: Query Tag Parent/Child Relationships #921

Closed
cinnamon-rolls opened this issue Jul 9, 2021 · 3 comments
Closed

Client API: Query Tag Parent/Child Relationships #921

cinnamon-rolls opened this issue Jul 9, 2021 · 3 comments
Labels

Comments

@cinnamon-rolls
Copy link

API path to grab the current parent/child tag relations

What I have in mind is something to the effect of (using somewhat contrived examples)

get_tags/get_children?parent=dress

which returns

{
  "children": [ "red dress", "orange dress", "yellow dress", "..." ] 
}

and,

get_tags/get_parents?child=red dress

which returns

{
  "parents": [ "dress", "red clothing", "..." ] 
}

But there are dozens of ways to probably go about this, so anything functionally equivalent works

(Sorry if this is a duplicate, I searched for this and didn't find this already. I'll move this to a comment of the pre-existing issue if it is)

@floogulinc
Copy link
Collaborator

I think a more general tag information API would be appropriate. Something where you can query a tag or array of tags and get it's parents, children, siblings, and display information at once. It may be useful to expose actual tag IDs in the file metadata API and use those here as well.

@Zweibach Zweibach added the system:api API related issues label Jul 11, 2021
@cinnamon-rolls
Copy link
Author

Sorry, late response

I'll support anything as long as it is functionally equivalent to what I described. The example above is just an example of what it could look like, but not what it has to look like.

@floogulinc
Copy link
Collaborator

This has been added in https://github.com/hydrusnetwork/hydrus/releases/tag/v541 with /add_tags/get_siblings_and_parents

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Projects
None yet
Development

No branches or pull requests

3 participants