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!
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
Searchentity. Then i have created aSearchItemDataProviderthat 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!