File tree Expand file tree Collapse file tree 2 files changed +15
-2
lines changed Expand file tree Collapse file tree 2 files changed +15
-2
lines changed Original file line number Diff line number Diff line change @@ -5,8 +5,21 @@ Models as a Service (MaaS) API. This is specified using Swagger. See below for i
5
5
To use this, run the following:
6
6
7
7
```
8
- docker pull swaggerapi/swagger-editor
8
+ docker pull swaggerapi/swagger-editor:latest
9
9
docker run -d -p 80:8080 swaggerapi/swagger-editor
10
10
```
11
11
12
- This will run Swagger Editor (in detached mode) on port 80 on your machine, so you can open it by navigating to http://localhost in your browser.
12
+ This will run Swagger Editor (in detached mode) on port 80 on your machine, so you can open it by navigating to http://localhost in your browser.
13
+
14
+ # Open API Code Generation
15
+
16
+ Unfortunately, the current Swagger Editor does not support code gen for Open API 3.0 and Flask. To generate the server stub use:
17
+
18
+ ```
19
+ wget http://central.maven.org/maven2/org/openapitools/openapi-generator-cli/3.3.4/openapi-generator-cli-3.3.4.jar -O openapi-generator-cli.jar
20
+
21
+ java -jar openapi-generator-cli.jar generate \
22
+ -i model_service_api.yaml \
23
+ -l python-flask \
24
+ -o Rest-Server-UPDATE
25
+ ```
File renamed without changes.
You can’t perform that action at this time.
0 commit comments