generate-swagger-api.sh 651 B

12345678910111213141516171819202122
  1. #!/bin/sh
  2. set -eu
  3. swagger generate model -f api/swagger.yaml \
  4. -t api -m types --skip-validator -C api/swagger-gen.yaml \
  5. -n Volume \
  6. -n Port \
  7. -n ImageSummary \
  8. -n Plugin -n PluginDevice -n PluginMount -n PluginEnv -n PluginInterfaceType \
  9. -n ErrorResponse \
  10. -n IdResponse \
  11. -n ServiceUpdateResponse
  12. swagger generate operation -f api/swagger.yaml \
  13. -t api -a types -m types -C api/swagger-gen.yaml \
  14. -T api/templates --skip-responses --skip-parameters --skip-validator \
  15. -n VolumesList \
  16. -n VolumesCreate \
  17. -n ContainerCreate \
  18. -n ContainerUpdate \
  19. -n Authenticate \
  20. -n ContainerWait