repeat pattern from services.decorate_view so that docstrings for views in resources are correct
make sure trim is used on doctring