using api resource for resolve