Sha256: 27828c5473548c59284288ab01301a8bc44c5680e974beff88e2a76b91e9e13e
Contents?: true
Size: 725 Bytes
Versions: 3
Compression:
Stored size: 725 Bytes
Contents
#usecase "Set" do # set :key => :simple # set :token => '1901484c41b8752d61863e323c743abe2c6e90f8841bbdfa789e1d70bc6f4899' # # get "/v1/set/:key" do # set :value => (rand*100000).to_i # param :token => resource(:token) # param :value => resource(:value) # end # # get "/v1/get/:key" do # param :token => resource(:token) # response 200 do # p [resource(:value), body.to_i] # end # end # # get "/v1/set/:key" do # param :key => rand(1000).to_i # set :value => (rand*100000).to_i # param :token => resource(:token) # param :value => resource(:value) # end # # xpost "/v1/set/:key" do # param :key => :file # body file('/tmp/file') # end # #end
Version data entries
3 entries across 3 versions & 1 rubygems
Version | Path |
---|---|
boned-0.3.2 | api/api-set.rb |
boned-0.3.1 | api/api-set.rb |
boned-0.3.0 | api/api-set.rb |