Sha256: f80edc2dee6de65a5fb4f8cc477bdff03568d2858e26c684a7e441b6c1773f56
Contents?: true
Size: 531 Bytes
Versions: 1
Compression:
Stored size: 531 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
1 entries across 1 versions & 1 rubygems
Version | Path |
---|---|
restapi-0.0.3 | spec/dummy/app/controllers/dogs_controller.rb |