Refactoring the report endpoint to http from ws