معرفی REST CLIENT توکار ویژوال استودیو 2022
نویسنده: محمد تقی نصیری
تاریخ: ۱۴۰۲/۰۱/۰۹ ۲۱:۳۵
آدرس: www.dntips.ir
| مطالب | ۳۶۹۴ |
| نویسندگان | ۲۷۶ |
| گروههای مطالب | ۱۰۲۴ |
| نقشههای راه | ۱۱۹ |
| دورهها | ۱۴ |
| اشتراکها | ۱۷۹۱۴ |
GET https://localhost:7092/WeatherForecast
@hostname = localhost
@port = 7092
@host = {{hostname}}:{{port}}
GET https://{{host}}/WeatherForecast [HttpPost]
public ActionResult Post(WeatherForecast weatherForecast)
{
//Code ...
return Ok(weatherForecast);
} @hostname = localhost
@port = 7092
@host = {{hostname}}:{{port}}
@contentType = application/json
POST https://{{host}}/WeatherForecast
Content-Type:{{contentType}}
{
"date": "2023-03-29",
"temperatureC": 30,
"summary": "Hot"
} @hostname = localhost
@port = 7092
@host = {{hostname}}:{{port}}
@contentType = application/json
GET https://{{host}}/WeatherForecast
###
POST https://{{host}}/WeatherForecast
Content-Type:{{contentType}}
{
"date": "2023-03-29",
"temperatureC": 30,
"summary": "Hot"
}