Commit 35ea33e6 by Eli Ben Baruch

generate-code-from-swager.txt - update the doc

parent 62d89023
Showing with 7 additions and 3 deletions
...@@ -4,9 +4,13 @@ download: ...@@ -4,9 +4,13 @@ download:
create a swagger document on swagger editor and choose 'File >> download json' create a swagger document on swagger editor and choose 'File >> download json'
a 'swagger.json' file will be downloaded. a 'swagger.json' file will be downloaded.
run: run the followed commands from the directory of the downloaded jar above
java -cp msJavaServer-swagger-codegen-1.0.0.jar:swagger-codegen-cli-2.1.4.jar io.swagger.codegen.SwaggerCodegen generate -l msJavaServer -i [/path-to-swagger.json] -o myMsJava 1. run java -cp msJavaServer-swagger-codegen-1.0.0.jar:swagger-codegen-cli-2.1.4.jar io.swagger.codegen.SwaggerCodegen generate -l msJavaServer -i [/path-to-swagger.json] -o myMsJava
take from the created directory "myMsJava" the apis for your project
located in <current_location>/myMsJava/src/io/swagger/client/api
java -jar swagger-codegen-cli-2.1.4.jar generate -l jaxrs -i [/path-to-swagger.json] -o myMsJavaJaxrs 2. run java -jar swagger-codegen-cli-2.1.4.jar generate -l jaxrs -i [/path-to-swagger.json] -o myMsJavaJaxrs
take from created directory myMsJavaJaxrs the models for your project
located in <current_directory>/myMsJavaJaxrs/src/gen/java/io/swagger/model
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or sign in to comment