Hi,
My model has a proxy like this :
Code:
proxy:
{
type: 'rest',
url: '<service>',
api:{
read:'<read_service>',
update:'<update_service>',
create:'<create_service>'
},
reader:
{
type: 'json',
root: 'List.elements.collection'
},
writer: {
type: 'json',
nameProperty: 'mapping',
root: 'VO'
}
}
When I call save on the model, based on the idProperty, the model decides to call the create (idProperty=0)or update(idProperty!=0). Now if I have new services like Enable and Disable, as below. Then how do I call/invoke the enable and/or disable service.
Code:
proxy:
{
type: 'rest',
url: '<service>',
api:{
read:'<read_service>',
update:'<update_service>',
create:'<create_service>',
enable:'<enable_service>',
disable:'<enable_service>'
},
reader:
{
type: 'json',
root: 'List.elements.collection'
},
writer: {
type: 'json',
nameProperty: 'mapping',
root: 'VO'
}
}
thanks
Nohsib