http://example.com/books?fields=title,description should serialize only the specified properties.
The filter should not be Doctrine dependent. It must implement the FilterInterface (to appear in the documentation) and decorate the SerializerContextBuilder to use the new attributes context option available in Symfony 3.3.
This filter should throw an exception if the Serializer version is < to 3.3.
http://example.com/books?fields=title,descriptionshould serialize only the specified properties.The filter should not be Doctrine dependent. It must implement the
FilterInterface(to appear in the documentation) and decorate theSerializerContextBuilderto use the newattributescontext option available in Symfony 3.3.This filter should throw an exception if the Serializer version is < to 3.3.