I have a model that has a boolean property 'protected'. In MySql it's stored as a tinyint with a value of 0 or 1. In my serializer I would like to filter on the property so I added:
Unfortunately, this means the url parameter must use 0 or 1 instead of 'true' or 'false':
http://localhost:3000/v1/profiles?protected=1
Is it possible to support 'true' or 'false'?
http://localhost:3000/v1/profiles?protected=true
I have a model that has a boolean property 'protected'. In MySql it's stored as a tinyint with a value of 0 or 1. In my serializer I would like to filter on the property so I added:
Unfortunately, this means the url parameter must use 0 or 1 instead of 'true' or 'false':
Is it possible to support 'true' or 'false'?