title: REST API Design Scenario
body: <p>I would like to check if a parent order is eligible to be deleted without retrieving the order details. The parent order is eligible to be deleted if all the child orders have been deleted. I have an endpoint designed similar to what is listed below</p>
  <pre><code>/parent-order/{parent-order-id} [ Return ParentOrder object]
  </code></pre>
  <p>However I was to check if the parent-order is eligible to be deleted without retrieving the details of the parent-order. &quot;isEligibleToBeDeleted&quot; is not an attribute of the parent order. Which of the below is a better approach to do this or are there any other alternatives?</p>
  <pre><code>/parent-order/{parent-order-id}/is-eligible-to-be-deleted [ returns true of eligible to be deleted and false if not]
  </code></pre>
  <p>or</p>
  <pre><code>/parent-order/is-eligible-to-be-deleted/{parent-order-id} [ returns true of eligible to be deleted and false if not]
  </code></pre>
  <p>or</p>
  <pre><code>    /parent-order/{parent-order-id}?isEligibleToBeDeleted=True 
  [ This is an enhancement on the existing endpoint which returns ParentOrder object if it is eligible to deleted and false otherwise ]
  </code></pre>