You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
With the addition of the `only` and `except` options, it opens up the
possiblities to the [partial response](http://bit.ly/1fxWuXJ) design
pattern where the consumer of the API can specifically request only the
fields that it desires. A common pattern to request these fields would
be via `params`, which will arrive as strings. Currently only an array
of symbols (or hash containing symbols) is supported to define the
desired fields.
This commit updates Grape::Entity to support an array of symbols _or_
strings to be passed as the `only` or `except` options of `represent`.
*[#134](https://github.com/intridea/grape-entity/pull/134): Subclasses no longer affected in all cases by `unexpose` in parent - [@etehtsea](https://github.com/etehtsea).
*[#136](https://github.com/intridea/grape-entity/pull/136): Allow for strings in `only` and `except` options - [@bswinnerton](https://github.com/bswinnerton).
0 commit comments