Struggling to get this feed work with Element API. I'm trying to return all entries created by a specific username. I've tried several different methods, but none of them work.
Here is the latest version of what I've tried:
'dealers/<username:{username}>.json' => function($username) {
return [
'elementType' => 'Entry',
'criteria' => [
'section' => 'listings',
'username' => $username
],
'paginate' => false,
'transformer' => function(EntryModel $entry) {
...