swagger.json 1.3 KB

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