Article belongs-to-many tags. To get all the tags that belong to article 1 then
/articles/1/tags. This will provide me with collection of tag resource objects that belong to article 1.
To get tags that doesn’t belong to article 1, i am creating a relationship url -
/articles/1/nonAssociatedTags. To my understanding, this nonAssociatedTags is a subresource of article and of type tags. Is it possible to filter nonAssociatedTags with Tag-attributes. If yes, then which of the below approach is correct [assume tag has property: type - popular/unpopular]
/articles/1/nonAssociatedTags?filter[type]=popular /articles/1/nonAssociatedTags?filter[Tags.type]=popular /articles/1/nonAssociatedTags?filter[unAssociatedTags.type]=popular