Build your web API on the type level.
Scala test-framework for REST service refactorings
Create small and simple refactoring tests for your REST service