How is the «resource ref='self'» webapi.xml rule handled for a request?

See also: