yes, for example im using this structure for accessing to my layers (for example when i want to add a new layer and it works perfectly):
write_logAccess(){ /*using*/
return serviceURL + "Admin/LogAccesos/FeatureServer/1?f=json&token=" + token.read();
}
where token.read() is the token saved in local storage var previously.
But how im using the applyedits, im not sure how to put the url... could be like this?
return serviceURL + "Admin/LogAccesos/FeatureServer/1/applyEdits?f=json&token=" + token.read();
so my code for save the user is the following now:
function saveLogin(){
var data = {
f: 'json',
adds: [{
attributes: {
"user": "Evelyn3"
},
geometry: {}
}]
};
jQuery.ajax({
type: 'POST',
url: myLayers.write_logAccess(),
data: JSON.stringify(data),
dataType:'json',
success: (success) => {
console.log(success);
console.log("pase");
},
error: (error) => {
console.log(error);
console.log("no pase");
}
});
}
and i still get this error: what could be happening?
Object {readyState: 4, status: 404, statusText: "error"}