Rest view, use annotation and change configuration