Sha256: 11e2e5bef9ce873cf3a75acfdd39e23d700ecaf5f65c708b7771d1c220b0d970
Contents?: true
Size: 790 Bytes
Versions: 9
Compression:
Stored size: 790 Bytes
Contents
module Api module V2 class ArchitecturesController < V2::BaseController resource_description { name 'Architectures' } api :GET, "/architectures/", "List all architectures." def index end api :GET, "/architectures/:id/", "Show an architecture." def show end api :POST, "/architectures/", "Create an architecture." param_group :arch, Api::V1::ArchitecturesController def create end api :PUT, "/architectures/:id/", "Update an architecture." param :architecture, Hash, :required => true do param :name, String end def update end api! "Delete an architecture." api_version "2.0" # forces removal of the method description def destroy end end end end
Version data entries
9 entries across 9 versions & 1 rubygems