|
|
@@ -0,0 +1,37 @@
|
|
|
+openapi: 3.0.0
|
|
|
+info:
|
|
|
+ title: Channel API
|
|
|
+ description: 版本风格的增删改查
|
|
|
+ version: 0.1.9
|
|
|
+servers:
|
|
|
+ - url: https://www-hk.wikipali.org/api/v2
|
|
|
+ description: Main (production) server
|
|
|
+ - url: http://spring.visuddhinanda.wikipali.org
|
|
|
+ description: Internal staging server for testing
|
|
|
+paths:
|
|
|
+ /channel:
|
|
|
+ get:
|
|
|
+ summary: Returns a list of channels.
|
|
|
+ description: 返回多行数据。支持关键字搜索,分页,排序
|
|
|
+ parameters:
|
|
|
+ - name: view
|
|
|
+ in: path
|
|
|
+ required: true
|
|
|
+ description: 查询的视图。如:studio,user 等
|
|
|
+ schema:
|
|
|
+ type: string
|
|
|
+ enum:
|
|
|
+ - studio
|
|
|
+ - user
|
|
|
+ responses:
|
|
|
+ "200": # status code
|
|
|
+ description: A JSON array of user names
|
|
|
+ content:
|
|
|
+ application/json:
|
|
|
+ schema:
|
|
|
+ type: object
|
|
|
+ properties:
|
|
|
+ ok:
|
|
|
+ type: boolean
|
|
|
+ message:
|
|
|
+ type: string
|