Add models from relations

/to @bajtos 
/cc @STRML

The PR adds related models into the Swagger spec so that REST operations for relations are correctly typed.
Probably not, the original code was returning `out` too.