title: How to generate API with swagger-codegen with a different controller name for Java?
body: <p>swagger-codegen generates APIControllers based on pathname. </p>
  
  <p>Let's say you have these paths on your swagger.yaml:</p>
  
  <p>/pet/findByStatus:
   /user/{userId}
   /store/inventory</p>
  
  <p>Then codegen is going to generate PetAPIController, UserAPIController, StoreApiController.</p>
  
  <p>But my API is something like:</p>
  
  <p>/private/pet/findByStatus:
   /private/user/{userId}
   /public/store/inventory</p>
  
  <p>so I end up with two main controllers: PrivateAPI and PublicAPI</p>
  
  <p>Is there any way to avoid this? Using tags, or just with the second path word.</p>
  
  <p>Thanks</p>