Releases: mlibrary/handle_rest
Releases · mlibrary/handle_rest
v0.0.5
Update faraday to 1.0 to match hyrax 4.0 requirements
v0.0.4
Fixed called to Service#write in UrlService#set.
v0.0.3
Return empty array when handle not found.
# Get Handle Value Lines
#
# @param handle [Handle]
# @return [[ValueLine]]
# @raise [RuntimeError] if the handle server returns an error.
def get(handle)
response = @conn.get(handle.to_s)
if response.success?
response.body["values"].map { |v| HandleRest::ValueLine.from_h(v) }
else
case response_code(response)
when 100
[]
else
raise_response_error(response)
end
end
end
v0.0.2
Handle Value Line Objects
v0.0.1
First round trip sketch.