Sha256: a8fa233385ab1fdeec4233cc29cc57001890a0174f8cc5233fbe064ed5dd193c
Contents?: true
Size: 822 Bytes
Versions: 63
Compression:
Stored size: 822 Bytes
Contents
module Api module V2 class Nested::ResourcesController < V2::BaseController resource_description do name 'Resources' resource_id "resource" end api :GET, "/nested/resources/", "List all nested resources." def index end api :GET, "/nested/resources/:id/", "Show a nested resource." def show end api :POST, "/nested/resources/", "Create a nested resource." param_group :arch, Api::V1::ArchitecturesController def create end api :PUT, "/nested/resources/:id/", "Update a nested resource." param :architecture, Hash, :required => true do param :name, String end def update end api :DELETE, "/resources/:id/", "Delete a nested resource." def destroy end end end end
Version data entries
63 entries across 63 versions & 3 rubygems