Module: ActivityNotification::Swagger::NotificationsParameters::TargetParameters
- Defined in:
- lib/activity_notification/controllers/concerns/swagger/notifications_parameters.rb
Overview
:nodoc:
Class Method Summary collapse
Class Method Details
.extended(base) ⇒ Object
4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 |
# File 'lib/activity_notification/controllers/concerns/swagger/notifications_parameters.rb', line 4 def self.extended(base) base.parameter do key :name, :target_type key :in, :path key :description, "Target type of notifications: e.g. 'users'" key :required, true key :type, :string key :example, "users" end base.parameter do key :name, :target_id key :in, :path key :description, "Target ID of notifications. This parameter type is integer with ActiveRecord, but will be string with Mongoid or Dynamoid ORMs." key :required, true key :type, :string key :example, 1 end end |