title: How to pass post json Object Data to an api using java/Spring/rest
body: <p><strong>Problem Statement</strong></p>
  
  <p>I am new to Spring/Rest Applications and I have data in an <code>Object</code>.</p>
  
  <p>Now,I need to pass this data to an API.</p>
  
  <p>Below is the sample curl Attached for a single record- </p>
  
  <pre><code>curl --request POST \
    --url http://eventapi-dev.wynk.in/tv/events/v1/event \
    --header 'cache-control: no-cache' \
    --header 'content-type: application/json' \
    --header 'postman-token: 67f73c14-791f-62fe-2b5a-179ba04f67ba' \
    --data '{"name":"hotel california", "createdAt":1505727060471, "steamUrl":"https://www.youtube.com/watch?v=lHje9w7Ev4U"}'
  </code></pre>
  
  <p>The response I got after Hitting curl url in Terminal is <strong>Ok</strong></p>
  
  <blockquote>
    <p>Can I anyone guide me how to write the Code in Java.</p>
  </blockquote>