in entity-browser-frontend/app/service/entity.js [120:138]
function save(entity, changeSummary) {
var isNew = true;
if (entity.id) {
isNew = false;
}
var path = 'api/dbs/' + fullDB.uuid + '/entities';
if (!isNew) {
path = path + '/' + entity.id
}
if (isNew) {
return $http.post(path, changeSummary, {
params: {
typeId: entity.typeId
}
});
}
return $http.put(path, changeSummary);
}