ParserMapping.put('ImaxCinema', {
parseType : 'XPATH',
params : [
{
name : 'filmsPath',
value : '/* ваш XPATH */'
},
... // еще любые параметры
]
handlerClassName : 'DefaultXPathParser'
});
var error = {
errorMessage : 'User not logged in',
errorCode : 'UE001',
}
this.instance = $resource('https://api.cloud.appcelerator.com/v1/posts/:methodName',
{
key: ACS_API_KEY,
_session_id : function() { return Session.sessionId; }
},
{
create : {method: 'POST', params: { methodName: 'create.json' }},
count : {method: 'GET', params: { methodName: 'count.json' }},
query : {method: 'GET', params: { methodName: 'query.json', isArray:true }},
show : {method: 'GET', params: { methodName: 'show.json', isArray:true }},
update : {method: 'PUT', params: { methodName: 'update.json' }},
delete : {method: 'DELETE', params: { methodName: 'delete.json' }}
}
);