Class: JsonapiSwaggerHelpers::DestroyAction
- Inherits:
-
Object
- Object
- JsonapiSwaggerHelpers::DestroyAction
show all
- Includes:
- Writeable
- Defined in:
- lib/jsonapi_swagger_helpers/destroy_action.rb
Instance Method Summary
collapse
Methods included from Writeable
#all_tags, #context, #default_description, #define_schema, included, #initialize, #operation_id, #payload_tags, #strong_resource, #util
Instance Method Details
#action_name ⇒ Object
5
6
7
|
# File 'lib/jsonapi_swagger_helpers/destroy_action.rb', line 5
def action_name
:destroy
end
|
#generate ⇒ Object
9
10
11
12
13
14
15
16
17
18
19
|
# File 'lib/jsonapi_swagger_helpers/destroy_action.rb', line 9
def generate
_self = self
@node.operation :delete do
key :description, _self.description
key :operationId, _self.operation_id
key :tags, _self.tags
_self.util.id_in_url(self)
end
end
|