I have a rest service create like this:
.factory('restService', ['$resource', function ($resource) {
return $resource(contexturl + '/rest/:url', {}, {
foo_service: {method: 'GET', params: {url: 'foo_service'}, isArray: true},
...
...
I call that something like this:
restService.foo_service({......}, function (data) {
fooServiceData = data;
.... do other work
}, function (errorObj) {
// handle error
}).$promise;
That I can apply use with a angular grid like this:
<
div
id
=
"maingrid"
kendo-grid
=
"maingrid"
style
=
"height: 200px"
options
=
"myOptions"
k-data-source
=
"fooServiceData"
></
div
>
How do I supply a schema like I see in the examples?
Ultimately my goal is to ensure that data-uid is my primary key of my object rather then some UUID.
Or, how can I connect a angular resource to a kendo data source?