Change API schema to use cosmic.Model for links