Sha256: ec3237102d302bbecf39863511f2808d1f3ba3154873f5e617920bd8283530eb
Contents?: true
Size: 724 Bytes
Versions: 11
Compression:
Stored size: 724 Bytes
Contents
#!/usr/bin/env ruby 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 post "/respond404" do status 404 '{"id":"1","title":"Roxanne","links":[{"rel":"self","href":"http://localhost/songs/1"}],"revision":"2"}' end post "/respond407" do status 407 end get "/respond200" do status 200 '{"id":"1","title":"Roxanne","links":[{"rel":"self","href":"http://localhost/songs/1"},"revision":"3"]}' end
Version data entries
11 entries across 11 versions & 2 rubygems