Adding by_ref and by_slug new endpoints