Ramses is trying to solve that by using a RAML file as source of truth. Regardless of the level of restfulness of your API, what you spec is what you get. Well, that's the ultimate goal, right now it has limitations and opinions but we're trying to solve them. I'm a core dev btw.
http://ramses.tech https://ramses.readthedocs.org
Let me know you thoughts!