Sha256: e366b217fea787330b2ed7745716be1fd964f9dabf78e77d4e216667ab722a71

Contents?: true

Size: 365 Bytes

Versions: 8

Compression:

Stored size: 365 Bytes

Contents

require "bundler/setup"
require "sinatra"
require "ostruct"
require "roar/representer/json"


get "/method" do
  "<method>get</method>"
end

post "/songs" do
'{"id":"1","title":"Roxanne","links":[{"rel":"self","href":"http://localhost/songs/1"}]}'
end


get "/songs/1" do
'{"id":"1","title":"Roxanne","links":[{"rel":"self","href":"http://localhost/songs/1"}]}'
end

Version data entries

8 entries across 8 versions & 1 rubygems

Version Path
roar-0.12.9 examples/example_server.rb
roar-0.12.8 examples/example_server.rb
roar-0.12.7 examples/example_server.rb
roar-0.12.6 examples/example_server.rb
roar-0.12.5 examples/example_server.rb
roar-0.12.4 examples/example_server.rb
roar-0.12.3 examples/example_server.rb
roar-0.12.2 examples/example_server.rb