Hope someone can help out with this as soon as possible.
This approach has been done many times outside of DSS but we want to take advantage of the API endpoint by ensuring we have a data sent via the API Point, for example:
results = request(url, param)
url: endpoint, param: data or dictionary access of our data.
I understand there is the webapp route which does not serve the purpose needed. Using Flask API, this has been implemented simply as follows in the library editor and called via the endpoint but it failed considerably during the API call.
# Library Editor
app = Flask(__name__)
args = parser.parse_args()
user_data = args['xml_text']
xml_data = request.form['xml']
content_dict = xmltodict.parse(xml_data)
# Endpoint Call
from librarymodule.filename import get_xml
xml_raw = get_xml(data)