Please sign in to comment.
Allowing filtering of tags by type (eg. Section)
As we look at sharing lists of topics, sections, etc. between Inside Government and Mainstream we will want to be able to quickly access a list of tags of a given type. GET /tags.json will still return all tags (at least until we paginate the list) GET /tags.json?type=section will return all section tags We considered the fact that we use 'tag_type' in some places and 'type' here but decided not to change that yet as there are implications for how inheritance works that are too significant to dig into here. 'type' would clash with rails (activerecord/mongoid) STI implementation.
- Loading branch information...
Showing with 12 additions and 2 deletions.