Thursday, 15 March 2012

asp.net - What other HTTP methods besides POST, PUT, DELETE, GET -



asp.net - What other HTTP methods besides POST, PUT, DELETE, GET -

i'm creating web service using asp.net's webapi.

it seems method name in apicontroller mapped uri.

e.g., putproducts add together products

what if want method executes say.. batch file.. executeprocess1();

this need not homecoming value of business worth. it's clients fire @ will, fit in web service? should method called?

if method modifying state on server (such updating records in database, writing files, ...) should utilize post http verb. depending on resource method modifying have corresponding api controller:

public class someresourcecontroller: controller { public void post() { ... processing here } }

obviously replace someresource in name of controller resource manipulating (products, orders, people, ...).

asp.net web-services rest asp.net-web-api

No comments:

Post a Comment