api sub domain now working and api returning json