Class: SwaggerApi::Operations::Delete
- Inherits:
-
Base
- Object
- Base
- SwaggerApi::Operations::Delete
show all
- Defined in:
- lib/swagger_api/operations/delete.rb
Instance Attribute Summary
Attributes inherited from Base
#action, #controller
Instance Method Summary
collapse
Methods inherited from Base
#create, #model, #model_name, #parameters, #readable_action, #request_body, #responses
Instance Method Details
#error_responses ⇒ Object
14
15
16
17
18
|
# File 'lib/swagger_api/operations/delete.rb', line 14
def error_responses
super.reject do |error_response|
%w[422].include?(error_response.keys.first)
end
end
|
#success_response ⇒ Object
6
7
8
9
10
11
12
|
# File 'lib/swagger_api/operations/delete.rb', line 6
def success_response
{
'204' => {
description: "#{readable_action} #{model_name.downcase}'s information"
}
}
end
|