title: How to send a post request with parameter?
body: <p>I created a WebAPI with Visual Studio 2017 using its .Net Core template.  I am able to test my Get() code with Postman and everything works correctly.  Now, I would like to send a Post request so it calls the following code.</p>
  
  <pre><code>[HttpPost]
  public void Post([FromBody] string value)
  {
    Console.WriteLine("value" + value);
  }
  </code></pre>
  
  <p>However, I get the following error when call </p>
  
  <p><strong><a href="https://localhost:44364/api/carbon?value=100" rel="nofollow noreferrer">https://localhost:44364/api/carbon?value=100</a></strong></p>
  
  <pre><code>{
      "": [
          "A non-empty request body is required."
      ]
  }
  </code></pre>
  
  <p>I am sure the problem lies with they way my Postman is setup but it looks correct.</p>
  
  <p><a href="https://i.stack.imgur.com/pxDHm.jpg" rel="nofollow noreferrer"><img src="https://i.stack.imgur.com/pxDHm.jpg" alt="enter image description here"></a></p>
  
  <p>Any suggestions?  Thank you!</p>
  
  <p><strong>Updated per suggestion</strong></p>
  
  <p>I added key/value to the body and received "The input was not valid."</p>
  
  <p><a href="https://i.stack.imgur.com/WQdFs.jpg" rel="nofollow noreferrer"><img src="https://i.stack.imgur.com/WQdFs.jpg" alt="enter image description here"></a>
  <a href="https://i.stack.imgur.com/UKf5V.jpg" rel="nofollow noreferrer"><img src="https://i.stack.imgur.com/UKf5V.jpg" alt="enter image description here"></a></p>