Skip to content

Search resource implementation #1995

@carlespibernat

Description

@carlespibernat

Hello!

I want to create a searcher in my project which searches and gives results of different resources.

I suppose that the most "RESTful" way to do that is to create a search resource, so what I have done is create my own Search entity. Then i have created a SearchItemDataProvider that will get the filters from the request and will find the results and return them.

The problem that I have now is that api platform requires that my resource has a specific id for each search, so I get an error.

Is this the properly way to implement this? And if it is how can I solve my issue with the id?

Thanks!

Metadata

Metadata

Assignees

No one assigned

    Type

    No type
    No fields configured for issues without a type.

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions