Skip to content

Instantly share code, notes, and snippets.

@phil8192
Created April 8, 2016 15:26
Show Gist options
  • Save phil8192/2df8e0bd0520d23527016cf2d27ca77c to your computer and use it in GitHub Desktop.
Save phil8192/2df8e0bd0520d23527016cf2d27ca77c to your computer and use it in GitHub Desktop.
dummy webserver
require 'sinatra'
require 'json'
post '/*' do
puts JSON.pretty_generate(JSON.parse(request.body.read))
status 201
end
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment