RestPack / restpack_serializer

Model serialization, paging, side-loading and filtering
MIT License
175 stars 43 forks source link

Support side loading param by array of symbols or by comma delimited string #3

Closed GavinJoyce closed 11 years ago

GavinJoyce commented 11 years ago

Supporting comma delimited string will allow us to pass the parms to the serializer directly:

URL: /api/v1/channels.json?includes=applications,domains,configurations

render json: ChannelSerializer.page(params)

as well as passing in a hash:

ChannelSerializer.page({page_size: 100, includes: [:applications, :domains, :configurations]})

GavinJoyce commented 11 years ago

https://github.com/RestPack/restpack-serializer/commit/2c5cfe8e24d77f39e35671d087e364acfcbb9067