support for ReST API