title: How to programatically edit a swagger yaml file in java to add a request parameter to a REST end point?
body: <p>I have a yaml file given by a third party library containing 5000+ lines.<br></p>
  
  <p>That yaml file needs to read,then a query parameter "status" needs to be added to<br>
  a REST end point with the path <b>/path/to/api</b> for non <b>GET</b> methods.</p>
  
  <p>Edit 1:
  I don't have a class file or a POJO. It's a swagger yaml. </p>
  
  <p>I have looked at the SwaggerParser, but I see a lot of code snippets for reading the yaml file but not to add to it.</p>