-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy patheduro-hcs-common.yaml
144 lines (137 loc) ยท 4.71 KB
/
eduro-hcs-common.yaml
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
110
111
112
113
114
115
116
117
118
119
120
121
122
123
124
125
126
127
128
129
130
131
132
133
134
135
136
137
138
139
140
141
142
143
144
openapi: 3.0.3
info:
title: eduro-hcs
description: | # language=markdown
**์ด ๋ฌธ์๋ ์์ง ์์ฑ๋์ง ์์์ผ๋ฉฐ, ์ ์์ ์ผ๋ก ์๋ํ๋ค๋ ๋ณด์ฅ์ด ์์ต๋๋ค!**
lhwdev๊ฐ ๋ง๋ eduro-hcs(https://hcs.eduro.go.kr)์ ๋น๊ณต์ openapi ์คํ์
๋๋ค.
์ด api์ url์ `https://hcs.eduro.go.kr`์
๋๋ค.
์ค์ง์ ์ผ๋ก ๋ง์ด ์ฐ์ด๋ api๋ค์ ๊ฐ ์๋๊ต์ก์ฒญ url์ ์์นํด ์์ต๋๋ค.
์ด๋ [eduro-hcs.yaml](eduro-hcs.yaml)์ ์ฐธ๊ณ ํ์ธ์.
๋ฌธ์๋ฅผ ์น์ฌ์ดํธ์์ ์ด๋ฉด ๋ธ๋ผ์ฐ์ ๊ฐ CORS๋ฅผ ๋ง๊ธฐ ๋๋ฌธ์, Chrome, Firefox ๋ฑ ์น๋ธ๋ผ์ฐ์ ์
web security๋ฅผ ๋ ์ธ์คํด์ค๋ฅผ ์๋ก ์์ํด์ผ ํฉ๋๋ค.
```shell
"ํฌ๋กฌ ๊ฒฝ๋ก\chrome.exe" --disable-web-security --disable-gpu --user-data-dir=%Temp%/chromeTemp # ํฌ๋กฌ์ ๊ฒฝ์ฐ
```
contact:
email: lhwdev6@outlook.com
version: 1.7.59 # aligned with UI version of hcs: https://hcs.eduro.go.kr/#/main/v2/searchSchool:
servers:
- url: https://hcs.eduro.go.kr
components:
schemas:
InstituteInfo:
$ref: './schemas/InstituteInfo.yaml'
RegionCodes:
$ref: './schemas/RegionCodes.yaml'
paths:
/v2/searchSchool:
get:
summary: ์ด๋ฆ์ผ๋ก ๊ธฐ๊ด ๊ฒ์
description: |
ํ๊ต, ๋ํ๊ต, ๊ต์กํ์ ๊ธฐ๊ด์ด๋ ํ์์ ๊ฒ์ํ ์ ์์ต๋๋ค.
- **ํ๊ต**: loginType=`school`, orgName, (lctnScCode, schulCrseScCode: ์จ๋, ์์จ๋ ๋จ)
- **๋ํ**: loginType=`univ`, orgName
- **๊ต์กํ์ ๊ธฐ๊ด**: loginType=`office`, orgName
- **ํ์**: loginType=`office`, isAcademySearch=`true`, lctnScCode, sigCode(/v2/getMinors ์ฐธ๊ณ ), orgName
parameters:
- in: query
name: loginType
description: ๊ธฐ๊ด ์ ํ
schema:
type: string
enum: [ school, univ, office ]
required: true
- in: query
name: orgName
description: ๊ธฐ๊ด ์ด๋ฆ
schema:
type: string
required: true
- in: query
name: lctnScCode
description: ์ง์ญ ์ฝ๋(loginType์ด school์ด๊ฑฐ๋ office์ด๊ณ ํ์์ ๊ฒ์ํ ๋)
schema:
$ref: '#/components/schemas/RegionCodes'
- in: query
name: schulCrseScCode
description: ํ๊ต ๋จ๊ณ ์ฝ๋(loginType์ด school์ผ ๋)
schema:
type: string
oneOf:
- enum: [ 1 ]
title: ์ ์น์
- enum: [ 2 ]
title: ์ด๋ฑํ๊ต
- enum: [ 3 ]
title: ์คํ๊ต
- enum: [ 4 ]
title: ๊ณ ๋ฑํ๊ต
- enum: [ 5 ]
title: ํน์ํ๊ต
- in: query
name: isAcademySearch
description: ํ์์ ๊ฒ์ํ๋์ง ์ฌ๋ถ(์๋๋ฉด ์
๋ ฅํ์ง ์์)
schema:
type: boolean
enum: [ true, false ]
required: false
- in: query
name: sigCode
schema:
type: string
responses:
200:
description: ํ๊ต ๋ชฉ๋ก์
๋๋ค.
content:
application/json:
schema:
type: object
items:
properties:
schulList:
type: array
items:
$ref: '#/components/schemas/InstituteInfo'
/v2/getMinors:
get:
summary: ์/๊ตฐ/๊ตฌ ์ฝ๋ ๊ฐ์ ธ์ค๊ธฐ
description: |
`/v2/searchSchool`์์ ํ์ ์ ๋ณด๋ฅผ ๊ฐ์ ธ์ฌ ๋ `sigCode`์ ๋ค์ด๊ฐ๋ ๊ฐ์ ์ป์ ์ ์์ต๋๋ค.
parameters:
- in: query
name: queryUrlParamsToString
schema:
type: string
enum: [ SIG_CODE ]
- in: query
name: upperClsfCodeValue
schema:
type: string
enum: [ LCTN_SC_CODE ]
- in: query
name: stateKey
schema:
type: string
enum: [ sigCodes ]
- in: query
name: upperCdcValue
schema:
$ref: '#/components/schemas/RegionCodes'
responses:
200:
description: OK
content:
application/json:
schema:
type: object
items:
properties:
cdcValueNm:
type: string
title: ์/๋ ์ด๋ฆ
cdcValueAbrvNm:
type: string
title: ์/๋ ์ด๋ฆ ์ฝ์ด
upperCdcValue:
type: string
title: ์/๊ตฐ/๊ตฌ ์ฝ๋