Skip to content

HTTPS clone URL

Subversion checkout URL

You can clone with HTTPS or Subversion.

Download ZIP
Browse files

Do more work in the random/value endpoint

  • Loading branch information...
commit 3ee82c3a145f50392935270771d77c654e0d5a26 1 parent 379c6ab
@czarneckid authored
Showing with 7 additions and 0 deletions.
  1. +7 −0 api.rb
View
7 api.rb
@@ -1,4 +1,5 @@
require 'grape'
+require 'securerandom'
module PumaBenchmark
class API < Grape::API
@@ -9,5 +10,11 @@ class API < Grape::API
{:status => 'ok', :data => 'pong'}
end
end
+
+ resource :random do
+ get '/value' do
+ {:status => 'ok', :data => SecureRandom.hex}
+ end
+ end
end
end
Please sign in to comment.
Something went wrong with that request. Please try again.