Support Rest on non-extern methods too

I need an issue ID to write tests.