Use sinatra as api web framework