def get_doi_endpoint(doi): # the GET api endpoint (returns json data) my_pub = get_pub_from_doi(doi) return jsonify({"results": [my_pub.to_dict()]})