You can use Chrome Developer tools (More Tools->Developer Tools) to troubleshoot your REST APIs during development.
Network->XHR (Click on the file name under the Name section)
Headers Tab (what’s sent to the API)
Response Tab (response sent from API)
View the Cookies