GET o'rniga HTTP POST dan foydalanadigan veb API kodining yangilangan versiyasi: System; System.Net; System.Net.Http; Namespace CalculatorAPI {public class CalculatorController: ApiController { [HttpPost] [Route{"api/calculator/add") ] public IHttpActionResult Add{([FromBody] CalculationRequest request) {int result request =.Num1 + request.Num2; return Ok(result); } [HttpPost] [{(Route{api/calculator/subtract} public IHttpActionResult Subtract} {(FromBody] Calculator} {Number} = {Number} = {Number} = {Number} - api.number; return{{
spam fails_task lang_mismatch pii not_appropriate hate_speech sexual_content quality toxicity humor helpfulness creativity violence