Could anyone suggest which approach(CSOM, REST ....) to take if we wish to achieve the following functionality...its will be basically a reporting tool
1. The tool should take site URL as input and display the content types attached to it, on clicking on each Content Type, on a side panel all columns associated to it should be displayed
2. Another option should be that all site columns with their data types should be displayed and on click on a particular column name, it should display all the content types it is attached to.
3. Display all list and libraries and on click on a library name the content types name should be displayed
4. also this data should have functionality to be able to be exported to excel sheet
Best Regards, Pankaj Rana