-
Notifications
You must be signed in to change notification settings - Fork 1
/
lawApi.json
190 lines (190 loc) · 5.9 KB
/
lawApi.json
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
145
146
147
148
149
150
151
152
153
154
155
156
157
158
159
160
161
162
163
164
165
166
167
168
169
170
171
172
173
174
175
176
177
178
179
180
181
182
183
184
185
186
187
188
189
190
{
"swagger": "2.0",
"info": {
"title": "API Document for retrieving laws",
"version": "0.0.1",
"description": "The document of using laws API."
},
"basePath": "/api/v1",
"paths": {
"/laws": {
"get": {
"tags": [
"法規 API"
],
"summary": "取得法規列表",
"produces": [
"application/json"
],
"responses": {
"200": {
"description": "取得法規列表",
"schema": {
"properties": {
"success": {
"type": "boolean",
"description": "表示回傳是否成功。"
},
"result": {
"type": "array",
"items": {
"type": "object"
}
}
}
},
"examples": {
"application/json": {
"success": true,
"result": [
{
"lawId": "A0010032",
"name": "行政院組織法",
"lastModify": "2010-02-03T00:00:00+08:00",
"versions": [
"0360331",
"0360422",
"0361225",
"0370513",
"0380321",
"0411120",
"0690629",
"0990203"
]
}
]
}
}
}
}
}
},
"/laws/{lawId}": {
"get": {
"tags": [
"法規 API"
],
"summary": "取得單一法規的所有修法版本列表",
"produces": [
"application/json"
],
"parameters": [
{
"name": "lawId",
"in": "path",
"description": "法規ID,如:A0010032",
"required": true,
"type": "string"
}
],
"responses": {
"200": {
"description": "取得法規版本列表",
"schema": {
"properties": {
"success": {
"type": "boolean",
"description": "表示回傳是否成功。"
},
"result": {
"type": "array",
"items": {
"type": "object"
}
}
}
},
"examples": {
"application/json": {
"success": true,
"result": [
"0360331",
"0360422",
"0361225",
"0370513",
"0380321",
"0411120",
"0690629",
"0990203"
]
}
}
}
}
}
},
"/laws/{lawId}/{version}": {
"get": {
"tags": [
"法規 API"
],
"summary": "取得單一法規的指定版本",
"produces": [
"application/json"
],
"parameters": [
{
"name": "lawId",
"in": "path",
"description": "法規ID,如:A0010032",
"required": true,
"type": "string"
},
{
"name": "version",
"in": "path",
"description": "0990203",
"required": true,
"type": "string"
}
],
"responses": {
"200": {
"description": "取得法規內容",
"schema": {
"properties": {
"success": {
"type": "boolean",
"description": "表示回傳是否成功。"
},
"result": {
"type": "array",
"items": {
"type": "object"
}
}
}
},
"examples": {
"application/json": {
"success": true,
"result": {
"lawId": "A0010032",
"version": "0990203",
"name": "行政院組織法",
"enName": "Organizational Act of the Executive Yuan",
"type": "法律",
"lastModify": "2010-02-03T00:00:00+08:00",
"historicalRecord": "1.中華民國三十六年三月三十一日國民政府制定公布全文 16 條\n2.中華民國三十六年四月二十二日國民政府修正公布全文 16 條\n3.中華民國三十六年十二月二十五日國民政府修正公布全文 17 條;並自 三十七年五月二十五日施行\n4.中華民國三十七年五月十三日國民政府修正公布第 3、5、15 條條文\n5.中華民國三十八年三月二十一日總統令修正公布第 3、5 條條文\n6.中華民國四十一年十一月二十日總統令修正公布第 5 條條文\n7.中華民國六十九年六月二十九日總統(69)台統(一)義字第 3666 號 令修正發布第 3 條條文\n8.中華民國九十九年二月三日總統華總一義字第 09900024171 號令修正 公布全文 15 條;並自一百零一年一月一日開始施行",
"url": "http://law.moj.gov.tw/LawClass/LawContent.aspx?PCODE=A0010032",
"abolishedComment": "",
"attachments": [],
"content": [
{
"title": "第 1 條",
"content": "本法依憲法第六十一條制定之。"
},
{
"title": "第 2 條",
"content": "行政院行使憲法所賦予之職權。"
}
]
}
}
}
}
}
}
}
}
}