admin/app/controllers/workarea/api/admin/swagger_controller.rb in workarea-api-4.4.7 vs admin/app/controllers/workarea/api/admin/swagger_controller.rb in workarea-api-4.5.0
- old
+ new
@@ -23,9 +23,42 @@
key :basePath, controller.root_path[0..-2]
key :schemes, [Rails.application.config.force_ssl ? 'https' : 'http']
key :consumes, ['application/json']
key :produces, ['application/json']
+ # define update_at params for re-use later
+ parameter :updated_at_starts_at do
+ key :name, :updated_at_starts_at
+ key :in, :query
+ key :description, 'Starting datetime for filtering on last updated'
+ key :type, :string
+ key :format, 'date-time'
+ end
+
+ parameter :updated_at_ends_at do
+ key :name, :updated_at_ends_at
+ key :in, :query
+ key :description, 'Ending datetime for filtering on last updated'
+ key :type, :string
+ key :format, 'date-time'
+ end
+
+ parameter :created_at_starts_at do
+ key :name, :created_at_starts_at
+ key :in, :query
+ key :description, 'Starting datetime for filtering on creation date'
+ key :type, :string
+ key :format, 'date-time'
+ end
+
+ parameter :created_at_ends_at do
+ key :name, :created_at_ends_at
+ key :in, :query
+ key :description, 'Ending datetime for filtering on creation date'
+ key :type, :string
+ key :format, 'date-time'
+ end
+
security_definition :BasicAuth do
key :type, :basic
end
security do
key :BasicAuth, []