Added URL to publish api method
Added user domain object and added mock domain to tests