Sha256: 328fb7063b26e2e6239ef9483cc403fc74cbe04383fbb90d91678cb1c26b9709
Contents?: true
Size: 614 Bytes
Versions: 2
Compression:
Stored size: 614 Bytes
Contents
class DogsController < ApplicationController api :desc => "Show dogs profile", :path => "/dogs/:id", :method => "GET" error :code => 401, :desc => "Unauthorized" error :code => 404, :desc => "Not Found" desc "+Show dog+ This is *description* of dog show method." def show render :nothing => true end ############################################################################# api :desc => "List all dogs", :path => "/dogs", :method => "GET" desc "List all dogs which are registered on our social site." def index render :text => "List of dogs" end end
Version data entries
2 entries across 2 versions & 1 rubygems
Version | Path |
---|---|
restapi-0.0.2 | spec/dummy/app/controllers/dogs_controller.rb |
restapi-0.0.1 | spec/dummy/app/controllers/dogs_controller.rb |