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

Version Path
apipie-rails-0.3.4 spec/dummy/app/controllers/api/v2/nested/resources_controller.rb
apipie-rails-0.3.3 spec/dummy/app/controllers/api/v2/nested/resources_controller.rb
apipie-rails-0.3.2 spec/dummy/app/controllers/api/v2/nested/resources_controller.rb
apipie-rails-0.3.1 spec/dummy/app/controllers/api/v2/nested/resources_controller.rb
apipie-rails-0.3.0 spec/dummy/app/controllers/api/v2/nested/resources_controller.rb
apipie-rails-0.2.6 spec/dummy/app/controllers/api/v2/nested/resources_controller.rb
apipie-rails-0.2.5 spec/dummy/app/controllers/api/v2/nested/resources_controller.rb
apipie-rails-0.2.4 spec/dummy/app/controllers/api/v2/nested/resources_controller.rb
apipie-rails-0.2.3 spec/dummy/app/controllers/api/v2/nested/resources_controller.rb
apipie-rails-0.2.2 spec/dummy/app/controllers/api/v2/nested/resources_controller.rb
apipie-rails-0.2.1 spec/dummy/app/controllers/api/v2/nested/resources_controller.rb
apipie-rails-0.2.0 spec/dummy/app/controllers/api/v2/nested/resources_controller.rb
apipie-rails-0.1.3 spec/dummy/app/controllers/api/v2/nested/resources_controller.rb
apipie-rails-0.1.2 spec/dummy/app/controllers/api/v2/nested/resources_controller.rb
apipie-rails-0.1.1 spec/dummy/app/controllers/api/v2/nested/resources_controller.rb
apipie-rails-0.1.0 spec/dummy/app/controllers/api/v2/nested/resources_controller.rb
apipie-rails-0.0.24 spec/dummy/app/controllers/api/v2/nested/resources_controller.rb
apipie-rails-0.0.23 spec/dummy/app/controllers/api/v2/nested/resources_controller.rb
jmoses_apipie-rails-0.0.23 spec/dummy/app/controllers/api/v2/nested/resources_controller.rb
apipie-rails-0.0.22 spec/dummy/app/controllers/api/v2/nested/resources_controller.rb