1
Reply

How we can restrict access to methods with specific HTTP verbs in Web API?

Suresh Kumar

Suresh Kumar

Nov 22, 2017
126
0

    Attribute programming is used for this functionality. Web API will support to restrict access of calling methods with specific HTTP verbs. We can define HTTP verbs as attribute over method as shown below[HttpPost]public void UpdateTestCustomer(Customer c){TestCustomerRepository.AddCustomer(c); }

    Suresh Kumar
    November 22, 2017
    0