Skip to content

Commit 9b4e426

Browse files
authored
fix: remove legacy search api (#255)
1 parent a428709 commit 9b4e426

File tree

1 file changed

+0
-83
lines changed

1 file changed

+0
-83
lines changed

open-api/api.yml

Lines changed: 0 additions & 83 deletions
Original file line numberDiff line numberDiff line change
@@ -50,89 +50,6 @@ paths:
5050
items:
5151
$ref: "#/components/schemas/Legacy_SubjectSmall"
5252

53-
/search/subject/{keywords}:
54-
get:
55-
tags:
56-
- 搜索
57-
summary: 条目搜索
58-
operationId: searchSubjectByKeywords
59-
parameters:
60-
- name: keywords
61-
in: path
62-
description: 关键词
63-
<br> 需要 URL Encode
64-
required: true
65-
schema:
66-
type: string
67-
- name: type
68-
in: query
69-
description: 条目类型,参考 [SubjectType](#model-Legacy_SubjectType)
70-
required: false
71-
schema:
72-
$ref: "#/components/schemas/Legacy_SubjectType"
73-
- name: responseGroup
74-
in: query
75-
description: 返回数据大小 <br> 默认为 small
76-
required: false
77-
schema:
78-
description: 返回数据大小
79-
type: string
80-
enum:
81-
- small
82-
- medium
83-
- large
84-
default: small
85-
- name: start
86-
in: query
87-
description: 开始条数
88-
required: false
89-
schema:
90-
type: integer
91-
- name: max_results
92-
in: query
93-
description: 每页条数
94-
<br> 最多 25
95-
required: false
96-
schema:
97-
type: integer
98-
maximum: 25
99-
responses:
100-
200:
101-
description: 搜索结果
102-
content:
103-
application/json:
104-
schema:
105-
oneOf:
106-
- type: object
107-
properties:
108-
results:
109-
description: 总条数
110-
type: integer
111-
list:
112-
description: 结果列表
113-
type: array
114-
items:
115-
$ref: "#/components/schemas/Legacy_SubjectSmall"
116-
- type: object
117-
properties:
118-
results:
119-
description: 总条数
120-
type: integer
121-
list:
122-
description: 结果列表
123-
type: array
124-
items:
125-
$ref: "#/components/schemas/Legacy_SubjectMedium"
126-
- type: object
127-
properties:
128-
results:
129-
description: 总条数
130-
type: integer
131-
list:
132-
description: 结果列表
133-
type: array
134-
items:
135-
$ref: "#/components/schemas/Legacy_SubjectLarge"
13653
components:
13754
schemas:
13855
Legacy_SubjectType:

0 commit comments

Comments
 (0)