Added formatting ability. The response can be obtained by providing a "format" attribute in the rest url.