REST (Representational State Transfer) Services in WCF

REST (Representational State Transfer)Services in WCF:

Representational State Transfer (REST )  is  architectural style that clients can make requests of services(Endpoints). RES9T is useful to implement one way distributed commutation between the client server architectural styles.

URI (Unforce Resource Identifier):

End user can interact with resources and resources could be name of anything .Resources are represented via a Uniform Resource Identifier.

Http Verbs: You can do the interaction with resources using the HTTP verbs(Get,Put,Post,and Delete).These are the main http verbs that is use in REST services HTTP communication.

 

GET Requests a specific representation of a resource. Requests by GET should only get data and should have no other effect.

PUT You can Update the resource if the URI refers to an already available resource else create it new one.

.DELETE You can deletes the specified resource.

POST You can submits data to be processed by the identified resource.

HEAD Similar to GET but only get headers and not the body. This is useful for getting meta-information written in response headers, without having to transport the entire content.

OPTIONS Returns the HTTP methods name that the server supports for the specified URL. Its can be used to check the functionality of a web server by requesting ‘*’ instead of a specific resource.

REST WebGetAttribute and WebInvoke Attribute:

The WebGetAttribute attribute is use for a service operation is logically a getting operation and that it can be called by the WCF REST programming model. The association with HTTP Get verb means that the operation is used to getting information from the service.

Leave a Reply

Your email address will not be published. Required fields are marked *

2 + 4 =


All Rights Reserved 2019 | DesignzRush (OPC) Pvt. Ltd.
Inline
Inline