establishing routing tracer and json response in the server