-
Notifications
You must be signed in to change notification settings - Fork 16
/
plugin.0rich.com.yaml
138 lines (123 loc) · 3.23 KB
/
plugin.0rich.com.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
openapi: 3.0.3
info:
title: 날씨, 열차 정보
version: 1.0.0
description: 날씨, 열차 정보를 제공하는 API
servers:
- url: https://plugin.0rich.com
paths:
/weather_now/{city}:
get:
operationId: getCurrentWeatherOfCity
summary: get current temperature of the given city (주어진 도시의 현재 온도)
parameters:
- in: path
name: city
schema:
type: string
required: true
description: name of city. should be korean name (도시의 이름, 한국어로 작성)
responses:
'200':
description: Successful response
content:
application/json:
schema:
$ref: '#/components/schemas/WeatherResponse'
/weather_forecast/{city}:
get:
operationId: getFutureWeatherOfCity
summary: get future weather of the given city (주어진 도시의 미래 날씨, 내일 모레 글피를 제공)
parameters:
- in: path
name: city
schema:
type: string
required: true
description: name of city. should be korean name (도시의 이름, 한국어로 작성)
responses:
'200':
description: Successful response
content:
application/json:
schema:
$ref: '#/components/schemas/WeatherResponse'
/train:
get:
operationId: getTrainLocation
summary: 현재 열차 위치 확인
parameters:
- in: query
name: line_info
required: true
schema:
type: string
example:
line_info: "1호선"
responses:
'200':
description: Successful response
content:
application/json:
schema:
type: array
items:
$ref: '#/components/schemas/TrainResponse'
/emotion:
get:
operationId: getKakaotalkEmotionAnalysis
summary: 연인 카카오톡 채팅 데이터로 잘될 확률 계산
parameters:
- in: query
name: chats
required: true
schema:
type: string
example:
chats: "홍길동 님과 카카오톡 대화"
responses:
'200':
description: Successful response
content:
application/json:
schema:
type: string
components:
schemas:
Weather:
type: object
properties:
city:
type: string
example: 서울
date:
type: string
example: '2023.5.14'
time:
type: string
example: '12:44'
temperature:
type: string
example: '22'
WeatherResponse:
type: object
properties:
weather:
$ref: '#/components/schemas/Weather'
Train:
type: object
properties:
statnTnm:
type: string
example: 광교
trainNo:
type: string
example: '9'
statnNm:
type: string
example: 성복
TrainResponse:
type: object
properties:
train:
$ref: '#/components/schemas/Train'