Skip to content

Add a filter to select specific fields #1083

Closed
@dunglas

Description

@dunglas

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.

Metadata

Metadata

Assignees

No one assigned

    Type

    No type

    Projects

    No projects

    Milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions