This article explains how to retrieve the site name and URL followed by the current user in SharePoint 2013 using a client object model (REST API and JavaScript)
We can use the SharePoint 2013 Representational State Transfer (REST) service to do the same tasks you can do when you use the .NetCSOM, JSOM.Here I explain how to retrieve the site name and URL followed by the current user in SharePoint 2013 using a client object model (REST API and JavaScript) and displaying it in the SharePoint page.1. Create a new page and a Content Editor Webpart (CEWP).2. Edit the web part that was added to the page.3. Upload your text file script into the site assests and copy the path of the text file and paste it into the Content link in CEWP.4. OutputCodeThe following example shows how to retrieve all of the following sites:
Getting Started With Workflow Manager Installation Guide