make doi fetching in api a before_action
add untested delete