sul-dlss / sdr-client

SDR API client (in Ruby)
https://sul-dlss.github.io/sdr-api/
Other
0 stars 1 forks source link

Return druid upon deposit #38

Closed justinlittman closed 4 years ago

justinlittman commented 4 years ago

SdrClient::Deposit.run should return the druid of the new deposit. (It is returned by the API.)

See also https://github.com/sul-dlss/sdr-api/issues/94

justinlittman commented 4 years ago

Never mind, it looks like { druid: JSON.parse(response.body)['druid'], background_job: response.headers['Location'] } is returned: https://github.com/sul-dlss/sdr-client/blob/master/lib/sdr_client/deposit/process.rb#L98