req and res schema