title: Is it okay to use same resource name for both get and post rest api
body: <p>Sometime back I developed a Restful service in Java with only 1 GET resource. It was accessed like this:</p>
  
  <p>GET <a href="http://localhost:8080/my-project/customers/transactions" rel="noreferrer">http://localhost:8080/my-project/customers/transactions</a></p>
  
  <p>This GET request returns all the customer transactions.</p>
  
  <p>Now, I have another project request where they want to insert customer transactions in a different schema in same database. I thought instead of creating other service I could enhance this service since underlying database is same and it's about customer transactions.</p>
  
  <p>So, I created another method in my service interface <code>createCustomerTransactions</code> and I am thinking to name it same as my GET request but this one will be POST like this:</p>
  
  <p>POST <a href="http://localhost:8080/my-project/customers/transactions" rel="noreferrer">http://localhost:8080/my-project/customers/transactions</a></p>
  
  <p>I tested this using Soap-UI and it works. My question is it the right way to do Restful. Is it okay to have both GET and POST having same url, internally though they will be pointing to different actual methods?
  I am not good with names so can't come up another better name for resource. </p>