static List strings = new List()
{
"value0", "value1","value2"
};
// POST api/values
public void Post([FromBody]string value)
{
strings.Add(value);
}
i am trying to learn api with postman
above is the code . How to POST Request using Postman . i have added the
url : https://localhost:44339/api/values
above is the code . How to POST Request using Postman . i have added the
url : https://localhost:44339/api/values
Header: Content-Type: application/json
Body : "New value"
Body : "New value"
Jignesh KumarPosted Jun 24, 2020, 8:25 AM
Farhan AhmedPosted Jun 24, 2020, 7:59 AM