fastapi_crud]# cat -n z1.txt
1 openapi: 3.0.1
2 info:
3 title: 'STEP1'
4 description: ''
5 version: ''
6
7 paths:
8 /dashboard/update:
9 post:
10 tags:
11 - dashboard
12 summary: dashboardupdate
13 description: hoge
14 operationId: updateDashboard
15 requestBody:
16 description: hoge
17 required: true
18 content:
19 application/json:
20 schema:
21 $ref: '#/components/schemas/Dashboard'
22 responses:
23 default:
24 description: updatehoge
25 content:
26 application/json:
27 schema:
28 $ref: '#/components/schemas/Dashboard'
29
30
31
32 /dashboard/search:
33 get:
34 tags:
35 - dashboard
36 summary: searchlist Dashboards by ###
37 description: hoge
38 operationId: searchDashboard
39 parameters:
40 - $ref: '#/components/parameters/Dashboard2'
41 responses:
42 default:
43 description: searchlist
44 content:
45 application/json:
46 schema:
47 type: array
48 items:
49 $ref: '#/components/schemas/Dashboard'
50
51 /dashboard/edit/{id}:
52 get:
53 tags:
54 - dashboards
55 summary: search Dashboards by ###
56 description: hoge
57 operationId: searchbyidDashboard
58 parameters:
59 - $ref: '#/components/parameters/Dashboardquery'
60 responses:
61 default:
62 description: xxx
63 content:
64 application/json:
65 schema:
66 $ref: '#/components/schemas/Dashboard'
67 /dashboard/create:
68 post:
69 tags:
70 - dashboard
71 summary: create Dashboard
72 description: hoge
73 operationId: createDashboard
74 requestBody:
75 description: hoge
76 required: true
77 content:
78 application/json:
79 schema:
80 $ref: '#/components/schemas/Dashboard'
81 responses:
82 default:
83 description: create
84 content:
85 application/json:
86 schema:
87 $ref: '#/components/schemas/Dashboard'
88 /dashboard/delete:
89 post:
90 tags:
91 - dashboard
92 summary: delete Dashboard
93 description: hoge
94 operationId: deleteDashboard
95 parameters:
96 - $ref: '#/components/parameters/Dashboard2'
97 responses:
98 default:
99 description: delete
100 content:
101 application/json:
102 schema:
103 $ref: '#/components/schemas/ApiResponse'
104 components:
105 schemas:
106 ApiResponse:
107 type: object
108 properties:
109 code:
110 type: integer
111 format: int32
112 type:
113 type: string
114 message:
115 type: string
116 Dashboard:
117 type: object
118 properties:
119 id:
120 type: integer
121 format: int64
122 example: 9999
123 account_id:
124 type: string
125 example: hoge
126 sub_category_code:
127 type: string
128 example: hoge
129 team_code:
130 type: string
131 example: hoge
132 tag_code:
133 type: string
134 example: hoge
135 dashboard_title:
136 type: string
137 example: hoge
138 tab_key:
139 type: string
140 example: hoge
141 display_order:
142 type: integer
143 format: int64
144 example: 9999
145 width:
146 type: integer
147 format: int64
148 example: 9999
149 term_key:
150 type: string
151 example: hoge
152 chart_link_id:
153 type: string
154 example: hoge
155 create_datetime:
156 type: string
157 format: date-time
158 example: 2020-01-31T23:59:59+09:00
159 create_username:
160 type: string
161 example: hoge
162 update_datetime:
163 type: string
164 format: date-time
165 example: 2020-01-31T23:59:59+09:00
166 update_username:
167 type: string
168 example: hoge
169 is_deleted:
170 type: boolean
171 format: int64
172 example: 9999
173 deleted_datetime:
174 type: string
175 format: date-time
176 example: 2020-01-31T23:59:59+09:00
177 deleted_username:
178 type: string
179 example: hoge
180 parameters:
181 Dashboard2:
182 name: id
183 in: query
184 description: kkkkk
185 required: true
186 schema:
187 type: integer
188 format: int64
189 Dashboardquery:
190 name: id
191 in: path
192 description: kkkkk
193 required: true
194 schema:
195 type: integer
196 format: int64
197 Dashboard:
198 name: id
199 in: query
200 description: xxxx ID
201 required: true
202 schema:
203 type: integer
204 format: int64
205 example: 9999
fastapi_crud]#