swagger.json 2.0 KB

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