Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

update v3 #3

Open
wants to merge 1 commit into
base: master
Choose a base branch
from
Open

update v3 #3

wants to merge 1 commit into from

Conversation

chshapiro
Copy link

No description provided.

sleep_time = params[:api_key][6..-1].to_i
sleep sleep_time
end
# if params[:api_key].starts_with?("sleep_")
Copy link
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

can we leave this code in?

puts " "
body_read = request.body.read
# puts "headers"
# puts JSON.pretty_generate(request.env)
Copy link
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

can we remove or uncomment this?

@@ -37,11 +40,62 @@ def halt_with_error(error, response_body)
"the stub api is up!"
end

post '/v3/data/' do
post '/api/v2/data/?' do
puts " "
Copy link
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

can we use logger instead of puts statements?

Copy link
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

(or are the behaviorally different for some reason?)

puts " "
puts " "
body_read = request.body.read
# puts "headers"
Copy link
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

same note about commented out logging here

@@ -97,6 +151,7 @@ def halt_with_error(error, response_body)
end

if !params[:attributes].nil?
attributes_object = params[:attributes]
Copy link
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

this line appears to be irrelevant/cruft?

@froodian
Copy link
Member

done looking

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants