channel.yaml 1.0 KB

12345678910111213141516171819202122232425262728293031323334353637
  1. openapi: 3.0.0
  2. info:
  3. title: Channel API
  4. description: 版本风格的增删改查
  5. version: 0.1.9
  6. servers:
  7. - url: https://www-hk.wikipali.org/api/v2
  8. description: Main (production) server
  9. - url: http://spring.visuddhinanda.wikipali.org
  10. description: Internal staging server for testing
  11. paths:
  12. /channel:
  13. get:
  14. summary: Returns a list of channels.
  15. description: 返回多行数据。支持关键字搜索,分页,排序
  16. parameters:
  17. - name: view
  18. in: path
  19. required: true
  20. description: 查询的视图。如:studio,user 等
  21. schema:
  22. type: string
  23. enum:
  24. - studio
  25. - user
  26. responses:
  27. "200": # status code
  28. description: A JSON array of user names
  29. content:
  30. application/json:
  31. schema:
  32. type: object
  33. properties:
  34. ok:
  35. type: boolean
  36. message:
  37. type: string