mirror of
https://github.com/LaCasemate/fab-manager.git
synced 2024-11-28 09:24:24 +01:00
limit parameter removed
as requested
This commit is contained in:
parent
5fe1a53237
commit
cda13540f9
@ -20,10 +20,6 @@ class OpenAPI::V1::EventsController < OpenAPI::V1::BaseController
|
||||
@events = @events.page(params[:page]).per(per_page)
|
||||
paginate @events, per_page: per_page
|
||||
end
|
||||
|
||||
if params[:limit].present?
|
||||
@events = @events.limit(params[:limit])
|
||||
end
|
||||
end
|
||||
|
||||
private
|
||||
|
@ -13,7 +13,6 @@ class OpenAPI::V1::EventsDoc < OpenAPI::V1::BaseDoc
|
||||
param_group :pagination
|
||||
param :id, [Integer, Array], optional: true, desc: "Scope the request to one or various events."
|
||||
param :upcoming, [FalseClass, TrueClass], optional: true, desc: "Scope for the upcoming events."
|
||||
param :limit, [Integer], optional: true, desc: "Limits the number of events."
|
||||
description "Events index. Order by *created_at* desc."
|
||||
example <<-EOS
|
||||
# /open_api/v1/events?page=1&per_page=2
|
||||
|
Loading…
Reference in New Issue
Block a user