Fixed bug where REST path was permanently concatenated to post/get path.