pride-flag-api icon indicating copy to clipboard operation
pride-flag-api copied to clipboard

[Feature Request] Search flags by color

Open kittydoor opened this issue 1 year ago • 0 comments

Hey, awesome project! Also no clue how you got such a cool domain for it :)

I think it would be awesome if it was possible to query flags by color on the server side. Some useful queries I can think of are:

More important:

  • Includes the list of colors (and more): [ yellow, purple ]
  • Includes exactly the list of colors (and nothing else): [ yellow, purple ]

There are some edge cases like colors such as magenta or navy being hard to guess correctly, or gray vs grey and other spelling differences in languages.

Not sure what the best interface for it would be for REST or for GraphQL, if anyone has opinions on this please let me know in a comment to this issue. If the feature request is accepted, I'll see if I can whip up a PR though I can't make any promises.

kittydoor avatar Jun 21 '24 09:06 kittydoor