fixing url for upstream
set header of api responses to json