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"

Farhan AhmedRank #73 · 25K reputationPosted Jun 24, 2020, 3:59 AM EDT
Jignesh KumarRank #91 · 22.9K reputationPosted Jun 24, 2020, 4:25 AM EDT