You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Now there is 'see :method' available in DSL, it maybe does make sense to use it in few cases but much more helpful feature would be the possibility to say 'method A has same parameters as method B'. Almost every #update method has same params as #create method.
Possible solution:
api :PUT, '/resource'
params_like :create
def update; end
When asking for #update parameters description, apipie would take those from #create method.
The text was updated successfully, but these errors were encountered:
param_group :person do
param :first_name
param :last_name
end
That explicitly states that this list is meant to be shared which is not so obvious, when using the params_like: in your case, I can imaging the situation, that new param will be added for create method, but the author doesn't realize, that this will cause also updating the update documentation.
Now there is 'see :method' available in DSL, it maybe does make sense to use it in few cases but much more helpful feature would be the possibility to say 'method A has same parameters as method B'. Almost every #update method has same params as #create method.
Possible solution:
When asking for #update parameters description, apipie would take those from #create method.
The text was updated successfully, but these errors were encountered: