title: What is the best way to synchronize two post methods
body: <p>I am developing rest service.
  There are two post methods.</p>
  
  <p>The first method:</p>
  
  <pre><code>post /something
  </code></pre>
  
  <ol>
  <li>receive the first part of data</li>
  <li>save to database</li>
  <li>return the answer with id</li>
  <li>make async actions with data</li>
  </ol>
  
  <p>The second method:</p>
  
  <pre><code>post /something/{id}/details
  </code></pre>
  
  <ol>
  <li>Receive the second part of data with id</li>
  <li>Checks that first method is completed</li>
  <li>process whole data</li>
  </ol>
  
  <p>What is the best way to develop such interaction? </p>
  
  <ol>
  <li>The second method checks database for the completion</li>
  <li>Scheduler checks database for existence of whole data and process it</li>
  <li>Another  </li>
  </ol>