request spec and json type in controller