I'm trying to do a simple endpoint and It's not working. I've opened other threads here but no one replies here. Do you have an example of how I can create an endpoint that returns all entries for a specific section?
For an API that deals with a large amount of data, you want to avoid loading all objects into memory. Bumping up the memory limit is only a stop-gap measure, as you said. A couple of approaches to handle this:
Simple, but effective: Limit your API to return X objects per call with a parameter to control offset/current page. The Element API plugin ...