test/dummy/app/controllers/desks_controller.rb in lina-0.0.1 vs test/dummy/app/controllers/desks_controller.rb in lina-0.0.2

- old
+ new

@@ -38,10 +38,11 @@ minLength: 1, } }, }, return: { + type: 'object', required: [ 'name' ], properties: { name: { type: 'string' } @@ -70,8 +71,27 @@ type: 'string' } } } } do + render json: { } + end + + define_action :default_value, { + name: '更新指定的桌子', + params: { + type: 'object', + required: [ 'filter' ], + properties: { + filter: { + type: 'string', + default: 'default', + } + } + }, + return: { + } + } do + @filter = params[:filter] render json: { } end end