api - orderby, limit, offset,
small refactor of controller