Fix missing redirect namespace
Improve API view to retreive documents of a type