I am trying to build the services in SharePoint 2010 farm solution which would connect to SQL database and return the response in JSON.

I tried exploring and all I could find was that I can build Web API controller that too in SP 2013 app model project. I tried the same and it works great.

I tried to add Web API controller in SP 2010 but I don't get any option to add the Controller.

How to create REST service in SP2010 farm solution?

Your Answer

By clicking "Post Your Answer", you acknowledge that you have read our updated terms of service, privacy policy and cookie policy, and that your continued use of the website is subject to these policies.

Browse other questions tagged or ask your own question.