Sha256: 6bd437c7ade46746d0c8f685c4c57fa1ff877a972f7f3a6802cbe588a5c2e1a9
Contents?: true
Size: 738 Bytes
Versions: 8
Compression:
Stored size: 738 Bytes
Contents
module Api module V2 module Sub class FootgunsController < V2::EmptyMiddleController resource_description do short 'Footguns are bad' end api :GET, '/footguns/', 'List all footguns.' def index; end api :GET, '/footguns/:id/', 'Show a footgun.' def show; end api :POST, '/footguns/', 'Create a footgun.' def create; end api :PUT, '/footguns/:id/', 'Update a footgun.' param :footgun, Hash, :required => true do param :name, String end def update; end api! 'Delete a footgun.' api_version '2.0' # forces removal of the method description def destroy; end end end end end
Version data entries
8 entries across 8 versions & 1 rubygems