Closed mikaa123 closed 10 years ago
When adding a representation to a resource, we do:
myResource .representation('representation-name', function (e) { // heavy work goes there. }
In order to be more coherent, we should call the following to get its representation:
myResource('representation-name', entity);
instead of the actual myResource(entity, 'representation-name');
myResource(entity, 'representation-name');
When adding a representation to a resource, we do:
In order to be more coherent, we should call the following to get its representation:
instead of the actual
myResource(entity, 'representation-name');