edinet_api_client 1.0.0

Sign up to get free protection for your applications and to get access to all the features.
@@ -0,0 +1,19 @@
1
+ # EdinetAPIClient::MetadataParameter
2
+
3
+ ## Properties
4
+
5
+ Name | Type | Description | Notes
6
+ ------------ | ------------- | ------------- | -------------
7
+ **date** | **String** | 指定したファイル日付が出力されます。 | [optional]
8
+ **type** | **String** | 指定した取得情報が出力されます。 | [optional]
9
+
10
+ ## Code Sample
11
+
12
+ ```ruby
13
+ require 'EdinetAPIClient'
14
+
15
+ instance = EdinetAPIClient::MetadataParameter.new(date: 2019-04-01,
16
+ type: 2)
17
+ ```
18
+
19
+
@@ -0,0 +1,17 @@
1
+ # EdinetAPIClient::MetadataResultset
2
+
3
+ ## Properties
4
+
5
+ Name | Type | Description | Notes
6
+ ------------ | ------------- | ------------- | -------------
7
+ **count** | **Integer** | 指定されたファイル日付における提出書類一覧の件数が出力されます。 | [optional]
8
+
9
+ ## Code Sample
10
+
11
+ ```ruby
12
+ require 'EdinetAPIClient'
13
+
14
+ instance = EdinetAPIClient::MetadataResultset.new(count: 2)
15
+ ```
16
+
17
+
@@ -0,0 +1,7 @@
1
+ gemName: edinet_api_client
2
+ moduleName: EdinetAPIClient
3
+ gemVersion: 1.0.0
4
+ gemAuthor: gabu
5
+ gemAuthorEmail: tsukada.shouya@gmail.com
6
+ gemHomepage: https://github.com/gabu/edinet_api_client
7
+ gemLicense: MIT
@@ -0,0 +1,254 @@
1
+ openapi: 3.0.2
2
+ info:
3
+ title: EDINET API
4
+ description: "EDINET API は、利用者が EDINET の画面からではなく、プログラムを介して EDINET のデータベースから効率的にデータを取得できる API(アプリケーション・プログラミング・インターフェース)です。EDINET API により、EDINET 利用者は効率的に開示情報を取得することが可能となります。"
5
+ termsOfService: https://disclosure.edinet-fsa.go.jp/download/ESE140191.pdf
6
+ contact:
7
+ name: "@gabu"
8
+ url: https://twitter.com/gabu
9
+ license:
10
+ name: Apache 2.0
11
+ url: http://www.apache.org/licenses/LICENSE-2.0.html
12
+ version: 1.0.0
13
+ externalDocs:
14
+ description: Find out more about EDINET API
15
+ url: https://disclosure.edinet-fsa.go.jp/EKW0EZ0015.html
16
+ servers:
17
+ - url: https://disclosure.edinet-fsa.go.jp/api/v1
18
+ paths:
19
+ /documents.json:
20
+ get:
21
+ summary: 書類一覧 API
22
+ description: 書類一覧 API では、「メタデータのみ」または「提出書類一覧及びメタデータ」を取得することが可能です。
23
+ operationId: findDocuments
24
+ parameters:
25
+ - name: date
26
+ in: query
27
+ description: 出力対象とする提出書類一覧のファイル日付(YYYY-MM-DD形式)を指定します。
28
+ required: true
29
+ style: form
30
+ explode: false
31
+ schema:
32
+ type: string
33
+ example: "2019-04-01"
34
+ - name: type
35
+ in: query
36
+ description: >
37
+ 取得情報を指定します。
38
+ * 1: メタデータのみを取得します。
39
+ * 2: 提出書類一覧及びメタデータを取得します。
40
+ required: false
41
+ style: form
42
+ explode: false
43
+ schema:
44
+ type: integer
45
+ enum: [1, 2]
46
+ default: 1
47
+ responses:
48
+ 200:
49
+ description: OK
50
+ content:
51
+ application/json:
52
+ schema:
53
+ type: object
54
+ properties:
55
+ metadata:
56
+ $ref: "#/components/schemas/Metadata"
57
+ results:
58
+ type: array
59
+ items:
60
+ $ref: "#/components/schemas/Document"
61
+ "/documents/{docID}":
62
+ get:
63
+ summary: 書類取得 API
64
+ description: 書類取得 API では、書類をダウンロードすることが可能です。
65
+ operationId: getDocument
66
+ parameters:
67
+ - name: docID
68
+ in: path
69
+ description: 取得したい書類の書類管理番号を指定します(書類管理番号は、書類一覧 API で取得した提出書類一覧に基づきます。ただし、開示対象外の書類は取得できません)。
70
+ required: true
71
+ schema:
72
+ type: string
73
+ example: "S100FMJY"
74
+ - name: type
75
+ in: query
76
+ description: >
77
+ 必要書類を指定します。
78
+ * 1: 提出本文書及び監査報告書を取得します。
79
+ * 2: PDF を取得します。
80
+ * 3: 代替書面・添付文書を取得します。
81
+ * 4: 英文ファイルを取得します。
82
+ required: true
83
+ style: form
84
+ explode: false
85
+ schema:
86
+ type: integer
87
+ enum: [1, 2, 3, 4]
88
+ example: 1
89
+ responses:
90
+ 200:
91
+ description: OK
92
+ content:
93
+ application/pdf:
94
+ schema:
95
+ type: string
96
+ format: binary
97
+ application/octet-stream:
98
+ schema:
99
+ type: string
100
+ format: binary
101
+
102
+ components:
103
+ schemas:
104
+ Metadata:
105
+ type: object
106
+ properties:
107
+ title:
108
+ type: string
109
+ description: API の名称が出力されます
110
+ example: 提出された書類を把握するための API
111
+ parameter:
112
+ type: object
113
+ description: リクエストパラメータの識別子です。
114
+ properties:
115
+ date:
116
+ type: string
117
+ description: 指定したファイル日付が出力されます。
118
+ example: "2019-04-01"
119
+ type:
120
+ type: string
121
+ description: 指定した取得情報が出力されます。
122
+ example: "2"
123
+ resultset:
124
+ type: object
125
+ description: 結果セットの識別子です。
126
+ properties:
127
+ count:
128
+ type: integer
129
+ description: 指定されたファイル日付における提出書類一覧の件数が出力されます。
130
+ example: 2
131
+ processDateTime:
132
+ type: string
133
+ format: date-time
134
+ description: 提出書類一覧の更新時間が出力されます。提出書類一覧の内容に変更がない場合でも書類一覧更新日時は更新されます。
135
+ example: "2019-04-01 13:01"
136
+ status:
137
+ type: string
138
+ description: ステータスコードが出力されます
139
+ example: "200"
140
+ message:
141
+ type: string
142
+ description: メッセージが出力されます
143
+ example: OK
144
+ Document:
145
+ type: object
146
+ properties:
147
+ seqNumber:
148
+ type: integer
149
+ description: ファイル日付ごとの連番です。
150
+ example: 1
151
+ docID:
152
+ type: string
153
+ description: 書類管理番号が出力されます。
154
+ example: "S1000001"
155
+ edinetCode:
156
+ type: string
157
+ description: 提出者の EDINET コードが出力されます。
158
+ example: "E10001"
159
+ secCode:
160
+ type: string
161
+ description: 提出者の証券コードが出力されます。
162
+ example: "10000"
163
+ JCN:
164
+ type: string
165
+ description: 提出者の法人番号が出力されます。
166
+ example: "6000012010023"
167
+ filerName:
168
+ type: string
169
+ description: 提出者の名前が出力されます。
170
+ example: "エディネット株式会社"
171
+ fundCode:
172
+ type: string
173
+ description: ファンドコードが出力されます。
174
+ example: "G00001"
175
+ ordinanceCode:
176
+ type: string
177
+ description: 府令コードが出力されます。
178
+ example: "030"
179
+ formCode:
180
+ type: string
181
+ description: 様式コードが出力されます。
182
+ example: "04A000"
183
+ docTypeCode:
184
+ type: string
185
+ description: 書類種別コードが出力されます。
186
+ example: "030"
187
+ periodStart:
188
+ type: string
189
+ description: 期間(自)が出力されます。
190
+ example: "2019-04-01"
191
+ periodEnd:
192
+ type: string
193
+ description: 期間(至)が出力されます。
194
+ example: "2020-03-31"
195
+ submitDateTime:
196
+ type: string
197
+ description: 提出日時が出力されます。
198
+ example: "2019-04-01 12:34"
199
+ docDescription:
200
+ type: string
201
+ description: EDINET の閲覧サイトの書類検索結果画面において、「提出書類」欄に表示される文字列が出力されます。
202
+ example: "有価証券届出書(内国投資信託受益証券)"
203
+ issuerEdinetCode:
204
+ type: string
205
+ description: 大量保有について発行会社の EDINET コードが出力されます。
206
+ example: null
207
+ subjectEdinetCode:
208
+ type: string
209
+ description: 公開買付けについて対象となる EDINET コードが出力されます。
210
+ example: null
211
+ subsidiaryEdinetCode:
212
+ type: string
213
+ description: 小会社の EDINET コードが出力されます。複数存在する場合(最大10個)、","(カンマ)で結合した文字列が出力されます。
214
+ example: null
215
+ currentReportReason:
216
+ type: string
217
+ description: 臨時報告書の提出事由が出力されます。複数存在する場合、","(カンマ)で結合した文字列が出力されます。
218
+ example: null
219
+ parentDocID:
220
+ type: string
221
+ description: 親書類管理番号が出力されます。
222
+ example: null
223
+ opeDateTime:
224
+ type: string
225
+ description: 「2-1-6 財務局職員による書類情報修正」、「2-1-7 財務局職員による書類の不開示」、磁気ディスク退出及び紙面提出を行った日時が出力されます。
226
+ example: null
227
+ withdrawalStatus:
228
+ type: string
229
+ description: 取下書は"1"、取り下げられた書類は"2"、それ以外は"0"が出力されます。
230
+ example: "0"
231
+ docInfoEditStatus:
232
+ type: string
233
+ description: 財務局職員が書類を修正した情報は"1"、修正された書類は"2"、それ以外は"0"が出力されます。
234
+ example: "0"
235
+ disclosureStatus:
236
+ type: string
237
+ description: 財務局職員によって書類の不開示を開始した情報は"1"、不開示とされている書類は"2"、財務局職員によって書類の不開示を解除した情報は"3"、それ以外は"0"が出力されます。
238
+ example: "0"
239
+ xbrlFlag:
240
+ type: string
241
+ description: 書類に XBRL がある場合は"1"、それ以外は"0"が出力されます。
242
+ example: "1"
243
+ pdfFlag:
244
+ type: string
245
+ description: 書類に PDF がある場合は"1"、それ以外は"0"が出力されます。
246
+ example: "1"
247
+ attachDocFlag:
248
+ type: string
249
+ description: 書類に代替書面・添付文書がある場合は"1"、それ以外は"0"が出力されます。
250
+ example: "1"
251
+ englishDocFlag:
252
+ type: string
253
+ description: 書類に英文ファイルがある場合は"1"、それ以外は"0"が出力されます。
254
+ example: "0"
@@ -0,0 +1,45 @@
1
+ # -*- encoding: utf-8 -*-
2
+
3
+ =begin
4
+ #EDINET API
5
+
6
+ #EDINET API は、利用者が EDINET の画面からではなく、プログラムを介して EDINET のデータベースから効率的にデータを取得できる API(アプリケーション・プログラミング・インターフェース)です。EDINET API により、EDINET 利用者は効率的に開示情報を取得することが可能となります。
7
+
8
+ OpenAPI spec version: 1.0.0
9
+
10
+ Generated by: https://openapi-generator.tech
11
+ OpenAPI Generator version: 4.0.0-beta3
12
+
13
+ =end
14
+
15
+ $:.push File.expand_path("../lib", __FILE__)
16
+ require "edinet_api_client/version"
17
+
18
+ Gem::Specification.new do |s|
19
+ s.name = "edinet_api_client"
20
+ s.version = EdinetAPIClient::VERSION
21
+ s.platform = Gem::Platform::RUBY
22
+ s.authors = ["gabu"]
23
+ s.email = ["tsukada.shouya@gmail.com"]
24
+ s.homepage = "https://github.com/gabu/edinet_api_client"
25
+ s.summary = "EDINET API Ruby Gem"
26
+ s.description = "EDINET API は、利用者が EDINET の画面からではなく、プログラムを介して EDINET のデータベースから効率的にデータを取得できる API(アプリケーション・プログラミング・インターフェース)です。EDINET API により、EDINET 利用者は効率的に開示情報を取得することが可能となります。"
27
+ s.license = 'MIT'
28
+ s.required_ruby_version = ">= 1.9"
29
+
30
+ s.add_runtime_dependency 'typhoeus', '~> 1.0', '>= 1.0.1'
31
+ s.add_runtime_dependency 'json', '~> 2.1', '>= 2.1.0'
32
+
33
+ s.add_development_dependency 'rspec', '~> 3.6', '>= 3.6.0'
34
+ s.add_development_dependency 'vcr', '~> 3.0', '>= 3.0.1'
35
+ s.add_development_dependency 'webmock', '~> 1.24', '>= 1.24.3'
36
+ s.add_development_dependency 'autotest', '~> 4.4', '>= 4.4.6'
37
+ s.add_development_dependency 'autotest-rails-pure', '~> 4.1', '>= 4.1.2'
38
+ s.add_development_dependency 'autotest-growl', '~> 0.2', '>= 0.2.16'
39
+ s.add_development_dependency 'autotest-fsevent', '~> 0.2', '>= 0.2.12'
40
+
41
+ s.files = `find *`.split("\n").uniq.sort.select { |f| !f.empty? }
42
+ s.test_files = `find spec/*`.split("\n")
43
+ s.executables = []
44
+ s.require_paths = ["lib"]
45
+ end
data/git_push.sh ADDED
@@ -0,0 +1,55 @@
1
+ #!/bin/sh
2
+ #
3
+ # Generated by: https://openapi-generator.tech
4
+ #
5
+ # ref: https://help.github.com/articles/adding-an-existing-project-to-github-using-the-command-line/
6
+ #
7
+ # Usage example: /bin/sh ./git_push.sh wing328 openapi-pestore-perl "minor update"
8
+
9
+ git_user_id=$1
10
+ git_repo_id=$2
11
+ release_note=$3
12
+
13
+ if [ "$git_user_id" = "" ]; then
14
+ git_user_id="gabu"
15
+ echo "[INFO] No command line input provided. Set \$git_user_id to $git_user_id"
16
+ fi
17
+
18
+ if [ "$git_repo_id" = "" ]; then
19
+ git_repo_id="edinet_api_client"
20
+ echo "[INFO] No command line input provided. Set \$git_repo_id to $git_repo_id"
21
+ fi
22
+
23
+ if [ "$release_note" = "" ]; then
24
+ release_note="Minor update"
25
+ echo "[INFO] No command line input provided. Set \$release_note to $release_note"
26
+ fi
27
+
28
+ # Initialize the local directory as a Git repository
29
+ git init
30
+
31
+ # Adds the files in the local repository and stages them for commit.
32
+ git add .
33
+
34
+ # Commits the tracked changes and prepares them to be pushed to a remote repository.
35
+ git commit -m "$release_note"
36
+
37
+ # Sets the new remote
38
+ git_remote=`git remote`
39
+ if [ "$git_remote" = "" ]; then # git remote not defined
40
+
41
+ if [ "$GIT_TOKEN" = "" ]; then
42
+ echo "[INFO] \$GIT_TOKEN (environment variable) is not set. Using the git credential in your environment."
43
+ git remote add origin https://github.com/${git_user_id}/${git_repo_id}.git
44
+ else
45
+ git remote add origin https://${git_user_id}:${GIT_TOKEN}@github.com/${git_user_id}/${git_repo_id}.git
46
+ fi
47
+
48
+ fi
49
+
50
+ git pull origin master
51
+
52
+ # Pushes (Forces) the changes in the local repository up to the remote repository
53
+ echo "Git pushing to https://github.com/${git_user_id}/${git_repo_id}.git"
54
+ git push origin master 2>&1 | grep -v 'To https'
55
+
@@ -0,0 +1,45 @@
1
+ =begin
2
+ #EDINET API
3
+
4
+ #EDINET API は、利用者が EDINET の画面からではなく、プログラムを介して EDINET のデータベースから効率的にデータを取得できる API(アプリケーション・プログラミング・インターフェース)です。EDINET API により、EDINET 利用者は効率的に開示情報を取得することが可能となります。
5
+
6
+ OpenAPI spec version: 1.0.0
7
+
8
+ Generated by: https://openapi-generator.tech
9
+ OpenAPI Generator version: 4.0.0-beta3
10
+
11
+ =end
12
+
13
+ # Common files
14
+ require 'edinet_api_client/api_client'
15
+ require 'edinet_api_client/api_error'
16
+ require 'edinet_api_client/version'
17
+ require 'edinet_api_client/configuration'
18
+
19
+ # Models
20
+ require 'edinet_api_client/models/document'
21
+ require 'edinet_api_client/models/inline_response200'
22
+ require 'edinet_api_client/models/metadata'
23
+ require 'edinet_api_client/models/metadata_parameter'
24
+ require 'edinet_api_client/models/metadata_resultset'
25
+
26
+ # APIs
27
+ require 'edinet_api_client/api/default_api'
28
+
29
+ module EdinetAPIClient
30
+ class << self
31
+ # Customize default settings for the SDK using block.
32
+ # EdinetAPIClient.configure do |config|
33
+ # config.username = "xxx"
34
+ # config.password = "xxx"
35
+ # end
36
+ # If no block given, return the default Configuration object.
37
+ def configure
38
+ if block_given?
39
+ yield(Configuration.default)
40
+ else
41
+ Configuration.default
42
+ end
43
+ end
44
+ end
45
+ end