You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
API endpoint to fetch items of multiple models at once
Currently, we are facing the issue that we have around 40-50 models which require as many singular HTTP requests. It would be nice if we could fetch all of the items of multiple models with the same filter settings at once. It also does not need to be optimized on the data structure, basically can be done with a loop and adding the models to a JSON array which then contains the items of the respective models as usual.
The idea would be to have something like: api/content/multiple-items?models=[<model1>,<model2>,...]&filter=<filter>
You could also add an array to the filters for something like (so that you can have filters per model if needed - even if we don't need it): api/content/multiple-items?models=[<model1>,<model2>,...]&filters=[<filter1>,<filter2>,...]
Or something similar. Anyway, that would be awesome to have and would speed up our initialization time by a lot. The easiest solution will suffice, as long as we don't need to make 40-50 HTTP requests for fetching the items of the different models with the same filter.
It would be greatly appreciated.
The text was updated successfully, but these errors were encountered:
API endpoint to fetch items of multiple models at once
Currently, we are facing the issue that we have around 40-50 models which require as many singular HTTP requests. It would be nice if we could fetch all of the items of multiple models with the same filter settings at once. It also does not need to be optimized on the data structure, basically can be done with a loop and adding the models to a JSON array which then contains the items of the respective models as usual.
Current it looks like:
The idea would be to have something like:
api/content/multiple-items?models=[<model1>,<model2>,...]&filter=<filter>
You could also add an array to the filters for something like (so that you can have filters per model if needed - even if we don't need it):
api/content/multiple-items?models=[<model1>,<model2>,...]&filters=[<filter1>,<filter2>,...]
Or something similar. Anyway, that would be awesome to have and would speed up our initialization time by a lot. The easiest solution will suffice, as long as we don't need to make 40-50 HTTP requests for fetching the items of the different models with the same filter.
It would be greatly appreciated.
The text was updated successfully, but these errors were encountered: