ccocchi / rabl-rails

Rails 4.2+ templating system with JSON, XML and Plist support.
MIT License
208 stars 51 forks source link

fields filter? #75

Open lephyrius opened 9 years ago

lephyrius commented 9 years ago

How do I add filters to the attributes? Like the facebook api: https://developers.facebook.com/tools/explorer

So u could select: https://www.example.com/api/users/42?fields=id,username Would return: { "id": 42, "username": "Lephyrius" }