Click here to Skip to main content
15,909,091 members
Please Sign up or sign in to vote.
0.00/5 (No votes)
See more:
Hi All,

I want to know which .Net framework supports REST apis, or is REST apis are independent of .Net framework.

Same thing with JSON. Does it supports .Net framework 2.0, 3.0 or only beyond that.


------Update---------------------------------------------------------

I found a link msdn.microsoft.com[^]
Here they have mentioned that Microsoft has added REST style services support to WCF in framework 3.5.
So, does this mean REST does not support earlier framework version.

-----------------------------------------------------------------------

Thanks,
Nagendra.
Posted
Updated 11-Nov-11 20:05pm
v3
Comments
Sergey Alexandrovich Kryukov 12-Nov-11 1:49am    
Do you have Visual Studio 2008 or later? If you do, the answering such question is very simple.
--SA
nagendrathecoder 12-Nov-11 2:01am    
I have Visual Studio 2005, thats why i want to know whether these supports 2.0 or beyond that.
RaisKazi 12-Nov-11 4:43am    
You need not to depend on Framework for this. Infact you can develop a REST Service even using HttpModule/HttpHandler, Please have a look at my Answer.

REST is not dependent on ASP.NET, or Java, or any other framework.

http://en.wikipedia.org/wiki/Representational_state_transfer[^]
 
Share this answer
 
Comments
Uday P.Singh 12-Nov-11 2:26am    
5ed :)
REST is a concept of exchanging data on HTTP generally in the form of XML/JSON.

http://en.wikipedia.org/wiki/Representational_state_transfer

Microsoft introduced inbuilt WCF REST support from Framework 3.5.

Have a look at below links for more information on WCF REST.

http://msdn.microsoft.com/en-us/netframework/dd547388

http://msdn.microsoft.com/en-us/netframework/cc950529

However you can develop REST service even without using WCF REST Project template of Visual Studio.

Below CodeProject article demonstrates how you can develop REST service using a simple HttpHandler.

Developing a REST Web Service using C# - A walkthrough

Support for JSON format in WCF RST is available from Framework 3.5 and above. In the attributes of your Web/REST Method you can assign value of RequestFormat Property to WebMessageFormat.Json.

Edited - Spelling corrections.
 
Share this answer
 
v2
Comments
Uday P.Singh 12-Nov-11 2:25am    
5ed :)
RaisKazi 12-Nov-11 2:43am    
Thank you Uday.
RaviRanjanKr 12-Nov-11 13:58pm    
My 5+ for nice links.
RaisKazi 12-Nov-11 22:27pm    
Thank you Ravi.

This content, along with any associated source code and files, is licensed under The Code Project Open License (CPOL)



CodeProject, 20 Bay Street, 11th Floor Toronto, Ontario, Canada M5J 2N8 +1 (416) 849-8900