title: How to convert SOAP methods to restful API?
body: <p>I am new to this world of Rest services, I have simple SOAP service with names </p>
  
  <pre><code>withDrawCashFromAccount(int id, int amountToWithDraw) 
  depositCashToAccount(int id, int amountToDeposit)
  </code></pre>
  
  <p>which are self explanatory, this was a simple service as the management team has decided to move to restful architecture, i face the following problems on how to convert about two methods in restful API</p>
  
  <ul>
  <li>In order to change a single column in a resource, do we need send the
  complete JSON structure of the resource ?.</li>
  </ul>
  
  <p>resource name "Account" </p>
  
  <pre><code>e.g Json structure:
  
          id : 1,
          name : "awesome customer",
          Amount : 500
  </code></pre>
  
  <ul>
  <li><p>In order to have above two type of simple use cases where user can
  withdraw cash or user can deposit, I am puzzled on how can i design the
  end points for rest service. Can I name them</p>
  
  <p>/account/depositCash/id,
  /account/withdrawCash/id</p>
  
  <ul>
  <li>Anything else I need to think like Idempotent nature of above calls? </li>
  </ul></li>
  </ul>
  
  <p>Currently using spring boot as from this <a href="http://www.springboottutorial.com/spring-boot-crud-rest-service-with-jpa-hibernate" rel="nofollow noreferrer">example</a> </p>