forked from loafle/openapi-generator-original
moved to client folder
This commit is contained in:
parent
bab5973dd0
commit
b6b80474b7
@ -3,4 +3,4 @@ DIR="$( cd "$( dirname "${BASH_SOURCE[0]}" )" && pwd )"
|
||||
|
||||
export CLASSPATH="$DIR/../target/lib/*:$DIR/../target/*"
|
||||
export JAVA_OPTS="${JAVA_OPTS} -Xmx1024M -DloggerPath=conf/log4j.properties"
|
||||
scala $WORDNIK_OPTS $JAVA_CONFIG_OPTIONS -cp $CLASSPATH "$@" samples/petstore/python/PythonPetstoreCodegen.scala http://petstore.swagger.wordnik.com/api/resources.json special-key
|
||||
scala $WORDNIK_OPTS $JAVA_CONFIG_OPTIONS -cp $CLASSPATH "$@" samples/client/petstore/python/PythonPetstoreCodegen.scala http://petstore.swagger.wordnik.com/api/resources.json special-key
|
||||
|
16
samples/client/petstore/python/PythonPetstoreCodegen.scala
Normal file
16
samples/client/petstore/python/PythonPetstoreCodegen.scala
Normal file
@ -0,0 +1,16 @@
|
||||
import com.wordnik.swagger.codegen.BasicPythonGenerator
|
||||
|
||||
import com.wordnik.swagger.core._
|
||||
|
||||
import java.io.File
|
||||
|
||||
object PythonPetstoreCodegen extends BasicPythonGenerator {
|
||||
def main(args: Array[String]) = generateClient(args)
|
||||
|
||||
override def destinationDir = "samples/petstore/python"
|
||||
|
||||
override def supportingFiles = List(
|
||||
("__init__.mustache", destinationDir, "__init__.py"),
|
||||
("swagger.mustache", destinationDir + File.separator + apiPackage.get, "swagger.py"),
|
||||
("__init__.mustache", destinationDir + File.separator + modelPackage.get, "__init__.py"))
|
||||
}
|
Loading…
x
Reference in New Issue
Block a user