How do I change the API name in the class generated by swagger-codegen
you can override this behavior as such:
override def toApiName(name: String) = "MyProject" + name
as you see fit. Please note that you should consider upgrading to 2.1.0-SNAPSHOT, which lives in https://github.com/swagger-api/swagger-codegen/tree/develop_2.0
In addition to the accepted answer - in order to get the capitalization right, you can use:
override def toApiName(name: String) = "MyProject" + name.capitalize