Add swagger docs and update cosmo rest docs repository