-
Notifications
You must be signed in to change notification settings - Fork 3
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
base: master
Are you sure you want to change the base?
update v3 #3
Conversation
sleep_time = params[:api_key][6..-1].to_i | ||
sleep sleep_time | ||
end | ||
# if params[:api_key].starts_with?("sleep_") |
There was a problem hiding this comment.
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) |
There was a problem hiding this comment.
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 " " |
There was a problem hiding this comment.
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?
There was a problem hiding this comment.
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" |
There was a problem hiding this comment.
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] |
There was a problem hiding this comment.
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?
done looking |
No description provided.