1.

How To Restrict Access To Methods With Specific Http Verbs In Web Api?

Answer»

With the help of Attributes(like HTTP verbs) one can IMPLEMENT access restrictions in Web API.

We can define HTTP verbs as attribute over method to restrict access.

EXAMPLE

 [HttpPost]

 PUBLIC VOID SampleMethod(SampleClass obj)

 {

//logic

 }

With the help of Attributes(like http verbs) one can implement access restrictions in Web API.

We can define HTTP verbs as attribute over method to restrict access.

Example : 

 [HttpPost]

 public void SampleMethod(SampleClass obj)

 {

//logic

 }



Discussion

No Comment Found