On 11/23/2015 9:18 AM, Stian Thorgersen wrote:
It's slightly more elegant isn't it? As everything has 1
place in the
endpoints, rather than multiple. With a 'search' option under 'users'
we'd only have:
/users
But, with the alternative approach (users-by-username, group-by-path,
etc) we end up with multiple locations:
/users
/users-by-email
/users-by-username
Which I think is harder to use + not as nice for audit/logging
Yeah, that was just a dumb approach (XXX-by-name), apologies, I wasn't
thinking. It kind of came about because we kept switching between name
and id for lookup.
--
Bill Burke
JBoss, a division of Red Hat
http://bill.burkecentral.com