This now adds a 3rd way to register a REST endpoint, I personally think that the 2 we have is too many as it is. Can you just convert the way `on` works to be of the swagger format and update the existing endpoints?