I've found in one of my projects that I sometimes have a string that I need to check as to whether it's a tag or a tag synonym.
To check if it's a tag synonym is easy using /tags/{tags}/info
I can pass in a vector of one or more tag names and for each which is a tag there will be an object returned in the items array. For each tag name which is not a tag nothing at all will be in the items array results.
But there's no parallel I can find for checking if a string is the name of a tag synonym.
I can use /tags/synonyms to get all the synonyms on a site - but this is very heavy-handed!
/tags/{tags}/synonyms offers little help because I'd need to know in advance which tag the synonym points to.
Is there something I'm overlooking or would we need a new API or to modify an existing one?
Perhaps the most trivial way to add such functionality if it is missing would be to enhance /tags/{tags}/info to return something also for synonyms. To avoid breaking anything it could avoid all current field names and instead have a new field such as "synonym", "syn-name", etc.