2016-10-04 15:28:23 +00:00
|
|
|
#!/bin/sh
|
|
|
|
set -eu
|
|
|
|
|
|
|
|
swagger generate model -f api/swagger.yaml \
|
2019-08-02 13:58:33 +00:00
|
|
|
-t api -m types --skip-validator -C api/swagger-gen.yaml \
|
|
|
|
-n ErrorResponse \
|
|
|
|
-n GraphDriverData \
|
|
|
|
-n IdResponse \
|
|
|
|
-n ImageDeleteResponseItem \
|
|
|
|
-n ImageSummary \
|
|
|
|
-n Plugin -n PluginDevice -n PluginMount -n PluginEnv -n PluginInterfaceType \
|
|
|
|
-n Port \
|
|
|
|
-n ServiceUpdateResponse \
|
|
|
|
-n Volume
|
2016-10-04 15:40:17 +00:00
|
|
|
|
|
|
|
swagger generate operation -f api/swagger.yaml \
|
2019-08-02 13:58:33 +00:00
|
|
|
-t api -a types -m types -C api/swagger-gen.yaml \
|
|
|
|
-T api/templates --skip-responses --skip-parameters --skip-validator \
|
|
|
|
-n Authenticate \
|
|
|
|
-n ContainerChanges \
|
|
|
|
-n ContainerCreate \
|
|
|
|
-n ContainerTop \
|
|
|
|
-n ContainerUpdate \
|
|
|
|
-n ContainerWait \
|
|
|
|
-n ImageHistory \
|
|
|
|
-n VolumeCreate \
|
|
|
|
-n VolumeList
|