Revert "changes to REST webservice"

This reverts commit eb9e8d4ccd504859fb3d4c2831a0d3688e2d53c7.