Skip to content

Commit 918419c

Browse files
committed
Edit /search/suggestion
1 parent 57df159 commit 918419c

File tree

1 file changed

+199
-12
lines changed

1 file changed

+199
-12
lines changed

src/paths/search/suggestion.yaml

Lines changed: 199 additions & 12 deletions
Original file line numberDiff line numberDiff line change
@@ -37,36 +37,223 @@ paths:
3737
caption:
3838
description: "자동완성 제목입니다. 해당 값으로 자동완성됩니다."
3939
type: "string"
40+
example: "tree"
4041
description:
4142
description: "자동완성 요소에 대한 설명입니다."
4243
type: "string"
44+
example: ""
4345
problems:
44-
description: "찾은 문제 목록입니다."
46+
description: "찾은 문제 목록입니다. 최대 5문제까지 표시됩니다."
4547
type: "array"
4648
items:
47-
$ref: "../../schemas/problem.yaml#/components/schemas/Problem"
49+
type: "object"
50+
properties:
51+
id:
52+
type: int
53+
description: "문제 ID입니다."
54+
example: 1763
55+
title:
56+
type: str
57+
description: "문제 제목입니다."
58+
example: "트리 색칠"
59+
level:
60+
$ref: "../../schemas/problem-level.yaml#/components/schemas/ProblemLevel"
61+
solved:
62+
type: int
63+
description: "문제를 푼 사람 수입니다."
64+
example: 126
65+
caption:
66+
type: str
67+
example: "트리 색칠"
68+
description:
69+
type: str
70+
example: "#1763"
71+
href:
72+
type: str
73+
example: "https://www.acmicpc.net/problem/1763"
4874
problemCount:
4975
description: "찾은 문제 수입니다."
5076
type: "integer"
5177
format: "int64"
5278
example: 1
53-
users:
54-
description: "찾은 사용자 목록입니다."
79+
tags:
80+
description: "찾은 태그 목록입니다. 최대 5개까지 표시됩니다."
5581
type: "array"
5682
items:
57-
$ref: "../../schemas/user.yaml#/components/schemas/User"
58-
userCount:
59-
description: "찾은 사용자 수입니다."
83+
type: "object"
84+
properties:
85+
key:
86+
description: "태그의 ID입니다."
87+
type: "string"
88+
example: "trees"
89+
name:
90+
description: "태그의 이름입니다."
91+
type: "string"
92+
example: "tree"
93+
problemCount:
94+
description: "이 태그를 포함하는 문제의 수입니다."
95+
type: "integer"
96+
example: 1080
97+
caption:
98+
type: "string"
99+
example: "tag:trees"
100+
description:
101+
type: "string"
102+
example: "1080 problems"
103+
href:
104+
type: "string"
105+
example: "/problems/tags/trees"
106+
tagCount:
107+
description: "찾은 태그 수입니다."
60108
type: "integer"
61109
format: "int64"
62110
example: 1
63-
tags:
64-
description: "찾은 태그 목록입니다."
111+
users:
112+
description: "찾은 사용자 목록입니다. 최대 5명까지 표시됩니다."
65113
type: "array"
66114
items:
67-
$ref: "../../schemas/problem-tag.yaml#/components/schemas/ProblemTag"
68-
tagCount:
69-
description: "찾은 태그 수입니다."
115+
type: "object"
116+
required:
117+
- handle
118+
- bio
119+
- organizations
120+
- backgroundId
121+
- profileImageUrl
122+
- solvedCount
123+
- voteCount
124+
- exp
125+
- tier
126+
- rating
127+
- ratingByProblemsSum
128+
- ratingByClass
129+
- ratingBySolvedCount
130+
- ratingByVoteCount
131+
- class
132+
- classDecoration
133+
- rivalCount
134+
- reverseRivalCount
135+
- maxStreak
136+
- coins
137+
- stardusts
138+
- joinedAt
139+
- bannedUntil
140+
- proUntil
141+
properties:
142+
handle:
143+
description: "사용자명입니다."
144+
type: "string"
145+
example: "shiftpsh"
146+
bio:
147+
description: "사용자의 자기소개입니다."
148+
type: "string"
149+
example: "🧡 이곳의 개발자입니다."
150+
badgeId:
151+
description: "사용자가 지금 사용 중인 뱃지의 아이디입니다."
152+
type: "string"
153+
nullable: true
154+
example: "ghudegy2022-1"
155+
backgroundId:
156+
description: "사용자가 지금 사용 중인 배경의 아이디입니다."
157+
type: "string"
158+
example: "boardgame_7"
159+
profileImageUrl:
160+
description: "사용자의 프로필 사진으로 가는 하이퍼링크입니다."
161+
type: "string"
162+
nullable: true
163+
example: "https://static.solved.ac/uploads/profile/0565b63f0b204e990d1b163018a1c358992519b8.png"
164+
solvedCount:
165+
description: "사용자가 푼 문제 수입니다."
166+
type: "integer"
167+
format: "int64"
168+
example: 2658
169+
voteCount:
170+
description: "사용자가 난이도 기여를 한 횟수입니다."
171+
type: "integer"
172+
format: "int64"
173+
example: 1326
174+
class:
175+
description: "사용자가 취득한 Class입니다."
176+
type: "integer"
177+
format: "int64"
178+
example: 8
179+
classDecoration:
180+
description: "사용자가 취득한 Class의 수준입니다."
181+
$ref: "../../schemas/class-decoration.yaml#/components/schemas/ClassDecoration"
182+
rivalCount:
183+
description: "사용자의 라이벌 수입니다."
184+
type: "integer"
185+
format: "int64"
186+
example: 38
187+
reverseRivalCount:
188+
description: "사용자의 역라이벌 수입니다."
189+
type: "integer"
190+
format: "int64"
191+
example: 53
192+
tier:
193+
$ref: "../../schemas/user-tier.yaml#/components/schemas/UserTier"
194+
rating:
195+
description: "사용자의 레이팅입니다."
196+
type: "integer"
197+
format: "int64"
198+
example: 2641
199+
exp:
200+
description: "사용자가 여태까지 획득한 경험치량입니다."
201+
type: "integer"
202+
format: "int64"
203+
example: 498605585
204+
ratingByProblemsSum:
205+
description: "푼 문제의 난이도 합으로 계산한 사용자의 레이팅입니다."
206+
type: "integer"
207+
format: "int64"
208+
example: 2211
209+
ratingByClass:
210+
description: "취득한 클래스에 따른 사용자의 레이팅입니다."
211+
type: "integer"
212+
format: "int64"
213+
example: 230
214+
ratingBySolvedCount:
215+
description: "푼 문제 수로 계산한 사용자의 레이팅입니다."
216+
type: "integer"
217+
format: "int64"
218+
example: 175
219+
ratingByVoteCount:
220+
description: "문제 난이도에 기여한 횟수로 계산한 사용자의 레이팅입니다."
221+
type: "integer"
222+
format: "int64"
223+
example: 25
224+
maxStreak:
225+
description: "최대 연속 문제 풀이일 수입니다."
226+
type: "integer"
227+
format: "int64"
228+
example: 6
229+
coins:
230+
description: "사용자가 가지고 있는 코인의 수입니다."
231+
type: "integer"
232+
format: "int64"
233+
example: 3845
234+
stardusts:
235+
description: "사용자가 가지고 있는 별가루의 수입니다."
236+
type: "integer"
237+
format: "int64"
238+
example: 264680
239+
joinedAt:
240+
description: "사용자가 가입한 날짜입니다."
241+
type: "string"
242+
format: "date-time"
243+
example: "2021-06-19T00:00:00.000Z"
244+
bannedUntil:
245+
description: "사용자의 정지 종료 날짜입니다."
246+
type: "string"
247+
format: "date-time"
248+
example: "1970-01-01T00:00:00.000Z"
249+
proUntil:
250+
description: "사용자의 PRO 종료 날짜입니다."
251+
type: "string"
252+
format: "date-time"
253+
example: "9999-12-31T00:00:00.000Z"
254+
userCount:
255+
description: "찾은 사용자 수입니다."
70256
type: "integer"
71257
format: "int64"
72258
example: 1
259+

0 commit comments

Comments
 (0)