I have this REST service, which speaks with LDAP server. In order to get all available data about user, I must visit this:
GET /users/:userId
Because user in LDAP is described by attributes, I want to get only some not all attributes. In this case must do this:
GET /users/:userId/o/mail/displayName/....(list of attributes required)
How to create this dynamic url for attribute list while using AngularJS $resource?
.factory('User', ['$resource', 'REST_API_URL', function ($resource, REST_API_URL) {
var User = $resource(
REST_API_URL + '/users/:id',
{id: '@id'}
);
return User;
}])