title: Nodejs - Value input POST request not assigned (using Postman)
body: <p>I'm newbie and I'm creating an API using Nodejs, MongoDB as DB and trubo360 as a deployment environment. I already make my post request script. But when I test it with Postman, it not assign the value. It just assign the default value which is I set it on my model class. And it not throwing any error. Here is the my post request test with postman :</p>
  
  <p>Input value :
  <a href="https://i.stack.imgur.com/RFjrE.png" rel="nofollow noreferrer"><img src="https://i.stack.imgur.com/RFjrE.png" alt="enter image description here"></a></p>
  
  <p>Request response :</p>
  
  <p><a href="https://i.stack.imgur.com/9o0pf.png" rel="nofollow noreferrer"><img src="https://i.stack.imgur.com/9o0pf.png" alt="enter image description here"></a></p>
  
  <p>My post request script : </p>
  
  <p><strong>routes/api.js :</strong></p>
  
  <pre><code>// POST - create new entities :
  router.post('/:resource', (req, res) =&gt; {
      const resource = req.params.resource
      const controller = controllers[resource]
  
      if(resource == null) {
          res.json({
              confirmation: 'fail',
              message: 'Invalid resource'
          })
  
          return
      }else {
          controller.post(req.body)
          .then(data =&gt; {
  
      console.log(req)
              res.json({
                  confirmation: 'success',
                  data: data,
              })
          })
          .catch(err =&gt; {
              res.json({
                  confirmation: 'fail',
                  message: err.message
              })
          })
      }
  })
  </code></pre>
  
  <p>and this is my controller 
  <strong>controllers/PlayerController.js :</strong></p>
  
  <pre><code>post: (params) =&gt; {
          console.log(params)
          return new Promise((resolve, reject) =&gt;{
              Player.create(params)
              .then(data =&gt; {
                  resolve(data)
              })
              .catch(err =&gt; {
                  reject(err)
              })
          })
      }
  </code></pre>