To convert WCF to RESTFUL service, an operation contract needs to be decorated with “WebInvoke (or) WebGet” to define the Request and Response format.
This WebInvoke attribute resides inside the “System.ServiceModel.Web” namespace is used to define the below parameters at the end point to convert it to RESTFUL Service.
-
Service Method to Invoke (POST/GET/PUT/DELETE)
-
URI template to invoke using friendly URL
-
Request and Response Format
To start with create a new “WCF Service Application” and follow the below steps to modify the WCF end point to JSON RESTFUL Service.