Skip to content

Commit

Permalink
add Content-Type headers to time tracking endpoints
Browse files Browse the repository at this point in the history
  • Loading branch information
Noah Lively committed Feb 17, 2017
1 parent ffe3e2d commit 76785a7
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions lib/bamboozled/api/time_tracking.rb
Original file line number Diff line number Diff line change
Expand Up @@ -8,14 +8,14 @@ def record(time_tracking_id)
def add(time_tracking_details)
# details = generate_xml(time_tracking_details)
details = time_tracking_details.to_json
options = { body: details }
options = { body: details, headers: { 'Content-Type' => 'application/json' } }

request(:post, "timetracking/add/", options)
end

def adjust(time_tracking_id, hours_worked)
details = { timeTrackingId: time_tracking_id, hoursWorked: hours_worked }.to_json
options = { body: details }
options = { body: details, headers: { 'Content-Type' => 'application/json' } }

request(:put, "timetracking/adjust", options)
end
Expand Down

0 comments on commit 76785a7

Please sign in to comment.