Is there a particular reason why the rest interface generator,
URLRouter.registerRestInterface, only works with interfaces?

I don't see a technical reason why just a class or a struct wouldn't
work. I'm not sure what the uses case was when this was created but to
me it just adds extra tedious work, keeping the class and interface in sync.

/Jacob Carlborg