So with this syntax I was able to get it to work:
code function initialize() {
var race_ID_GPX = localStorage.getItem("raceIDLocalVar");
var db_ID = "5187fbe2e4b0446b3349dkkd"
var serverUrl = 'https://api.appery.io/rest/1/db/files/'+race_ID_GPX;
var session_token = localStorage.getItem("_sessionToken");
and
$.ajax({
type: "GET",
headers: {"X-Appery-Database-ID":db_ID,"X-Appery-Session-Token":session_token},
url: serverUrl,
dataType: "xml",
success: function (xml) {
/code
However my file name(100104) pulled from localStorage.getItem("raceIDLocalVar"); doesn't work unless I hardcode the full file name of 952185dd-da7e-4364-9fbe-2d72363b10ac.100104.
Any suggestions of overcoming this?