Seeking Example of Role-Based Access in HttpApi

somewhere there was some neat HttpApi example posted with role based access permission, checking if a user had a particular role for said resource.
I can't find it anymore, anyone any idea?
Was this page helpful?