generate-swagger-api.sh 714 B

123456789101112131415161718192021222324252627
  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 ErrorResponse \
  6. -n GraphDriverData \
  7. -n IdResponse \
  8. -n ImageDeleteResponseItem \
  9. -n ImageSummary \
  10. -n Plugin -n PluginDevice -n PluginMount -n PluginEnv -n PluginInterfaceType \
  11. -n Port \
  12. -n ServiceUpdateResponse \
  13. -n Volume
  14. swagger generate operation -f api/swagger.yaml \
  15. -t api -a types -m types -C api/swagger-gen.yaml \
  16. -T api/templates --skip-responses --skip-parameters --skip-validator \
  17. -n Authenticate \
  18. -n ContainerChanges \
  19. -n ContainerCreate \
  20. -n ContainerTop \
  21. -n ContainerUpdate \
  22. -n ContainerWait \
  23. -n ImageHistory \
  24. -n VolumeCreate \
  25. -n VolumeList