swagger.yaml 740 B

1234567891011121314151617181920212223242526272829
  1. info:
  2. contact: {}
  3. description: An example of gin
  4. license:
  5. name: MIT
  6. url: https://github.com/EDDYCJY/go-gin-example/blob/master/LICENSE
  7. termsOfService: https://github.com/EDDYCJY/go-gin-example
  8. title: Golang Gin API
  9. version: "1.0"
  10. paths:
  11. /api/v1/getAllVehicles:
  12. get:
  13. description: 获取所有车辆信息
  14. responses:
  15. "200":
  16. description: '{ "code": 200, "data": {}, "msg": "ok" }'
  17. schema:
  18. type: string
  19. summary: GetAllVehicles
  20. /api/v1/index:
  21. get:
  22. description: test
  23. responses:
  24. "200":
  25. description: '{ "code": 200, "data": {}, "msg": "ok" }'
  26. schema:
  27. type: string
  28. summary: Hello World
  29. swagger: "2.0"