REST GET and POST both now working