swagger.yml 1.1 KB

12345678910111213141516171819202122232425262728293031323334353637383940414243444546
  1. swagger: "2.0"
  2. info:
  3. title: beego Test API
  4. description: beego has a very cool tools to autogenerate documents for your API
  5. version: 1.0.0
  6. termsOfService: http://beego.me/
  7. contact:
  8. email: astaxie@gmail.com
  9. license:
  10. name: Apache 2.0
  11. url: http://www.apache.org/licenses/LICENSE-2.0.html
  12. basePath: /v1
  13. paths:
  14. /image/svg_to_png:
  15. post:
  16. tags:
  17. - image
  18. description: 图片上传接口
  19. operationId: ImageController.图片上传
  20. parameters:
  21. - in: query
  22. name: Img
  23. description: 图片base64字符串
  24. required: true
  25. type: string
  26. - in: query
  27. name: Sign
  28. description: 策略组提供的资源id
  29. required: true
  30. type: string
  31. responses:
  32. "200":
  33. description: 新增成功
  34. /wechat/send_template_msg:
  35. post:
  36. tags:
  37. - wechat
  38. description: 推送模板消息
  39. operationId: WechatController.推送模板消息
  40. responses:
  41. "200":
  42. description: 新增成功
  43. tags:
  44. - name: wechat
  45. description: |
  46. 发送模板消息