It is common practice to provide subscribers of any service, including REST, with an interface definition for this service. If you have an XML interface, some XML schema ( XSD , RELAX NG , Schematron , etc.) is a great way to define a request and response . In addition to providing documentation, it can be used by checking parsers to catch violations of the declared interface.
You may also consider creating JSON Schema definitions for your JSON interface. It can provide some of the same benefits as an XML schema, however, perhaps this is less "common practice" than XML schemas for XML.