Add api_format helper
Paginate events endpoint (for jsonapi only)