Commit fe7992a5 authored by Douwe Maan's avatar Douwe Maan

Merge branch 'events-paginate' into 'master'

API: Events paginate

Updated the api method for /project/:id/events, to use the paginate method instead of limiting and offsetting the recent events in the method itself.

This will also change the first page to be 1 instead of 0, but using 0 will still work and will give back the first page.
This also add's the link headers (next/first/last).

See merge request !267
parents 5059681f 3b3662da
......@@ -51,6 +51,7 @@ v 7.10.0 (unreleased)
- Prevent holding Control-Enter or Command-Enter from posting comment multiple times.
- Prevent note form from being cleared when submitting failed.
- Improve file icons rendering on tree (Sullivan Sénéchal)
- API: Add pagination to project events
v 7.9.0
- Send EmailsOnPush email when branch or tag is created or deleted.
......
......@@ -88,7 +88,7 @@ module API
present user_project, with: Entities::ProjectWithAccess, user: current_user
end
# Get a single project events
# Get events for a single project
#
# Parameters:
# id (required) - The ID of a project
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment