Commit e06420fe by liyijie

update format

parent 727899fe
...@@ -39,10 +39,10 @@ RSpec.describe '<%= controller_path %>', type: :request, capture_examples: true, ...@@ -39,10 +39,10 @@ RSpec.describe '<%= controller_path %>', type: :request, capture_examples: true,
<% end -%> <% end -%>
<% path_item[:actions].each do | action, details | -%> <% path_item[:actions].each do | action, details | -%>
<% next if action == 'put' -%> <% next if action == 'put' -%>
<%= action %>(summary: '<%= details[:summary] %>') do <%= action %>(summary: '<%= details[:summary] %>') do
produces 'application/json' produces 'application/json'
consumes 'application/json' consumes 'application/json'
<% if ['post', 'patch'].include? action -%> <% if ['post', 'patch'].include? action -%>
parameter :<%= resource_singular %>, in: :body, schema: <%= parameter :<%= resource_singular %>, in: :body, schema: <%=
resource_singular %>_ref resource_singular %>_ref
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment