resas-api 0.3.0 → 0.3.1

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
checksums.yaml CHANGED
@@ -1,7 +1,7 @@
1
1
  ---
2
2
  SHA1:
3
- metadata.gz: 994634fd1f818ab27d574af848a9086a0c271a8d
4
- data.tar.gz: ed022594f90f40a534ffdbea5f9792db51197dd8
3
+ metadata.gz: a3486cc99a50f021864013b755012fc7104110b4
4
+ data.tar.gz: 0961ba3dc69ab9d57072c7fb861c5f090ab20fff
5
5
  SHA512:
6
- metadata.gz: 7dea8b83da0b08d12db8841d87beaff2ed387caa992635866da7c41ff2b31a09cdf07ea512e6014376de6ba97bbe26bcf2a98bb4b286d75b20e616145420f431
7
- data.tar.gz: 40ed282e39051c76e67aac934ec40104da505fab1677453c7ae6cc21fd5cb427dc6ab6a23accefc2e63d22903dffd4079faa9fa795eccaf8fdca6d6034dc67e3
6
+ metadata.gz: c18999c1058d12b321aa5f5dd4a4d811d87605c65d9e42eaf172d4ddf4ce94d50558b5e59bf838298b8447457baf7e7632d02b9c6bae0ce0ef177735ec4d7b98
7
+ data.tar.gz: bdb19c739cced6de17e9ea7c58383769022ae1ccd92f2a0cc8f9f1ade7f2c72e22e259a16455cf16faec1e0b02a265ca4fd440de217960a119e877b478b0a44f
data/README.md CHANGED
@@ -32,13 +32,13 @@ The gem is available as open source under the terms of the [MIT License](http://
32
32
  ```ruby
33
33
  Resas::Api.configure do | config |
34
34
  config.access_key = '[ApiAccessKey]'
35
- config.api_version = 'v1-rc.1'
35
+ config.api_version = 'v1'
36
36
  end
37
37
  => {
38
38
  :access_key=>"[ApiAccessKey]",
39
39
  :base_url=>"https://opendata.resas-portal.go.jp",
40
40
  :format=>:json,
41
- :api_version=>"v1-rc.1",
41
+ :api_version=>"v1",
42
42
  :adapter=>:net_http
43
43
  }
44
44
 
@@ -47,7 +47,7 @@ Resas::Api.options
47
47
  :access_key=>"[ApiAccessKey]",
48
48
  :base_url=>"https://opendata.resas-portal.go.jp",
49
49
  :format=>:json,
50
- :api_version=>"v1-rc.1",
50
+ :api_version=>"v1",
51
51
  :adapter=>:net_http
52
52
  }
53
53
 
@@ -56,7 +56,7 @@ response_body = Resas::Api.client.get( 'prefectures' )
56
56
  @client=#<Resas::Api::Client:0x007fa7194ad298
57
57
  @access_key="[ApiAccessKey]",
58
58
  @adapter=:net_http,
59
- @api_version="v1-rc.1",
59
+ @api_version="v1",
60
60
  @base_url="https://opendata.resas-portal.go.jp",
61
61
  @format=:json
62
62
  >,
@@ -117,7 +117,7 @@ require 'resas/api' # 注意: require 'resas-api' ではない!
117
117
  ```ruby
118
118
  Resas::Api.configure do | config |
119
119
  config.access_key = '[ApiAccessKey]'
120
- config.api_version = 'v1-rc.1'
120
+ config.api_version = 'v1'
121
121
  end
122
122
  ```
123
123
 
@@ -125,9 +125,10 @@ end
125
125
  * 省略した場合は、環境変数 RESAS_API_ACCESS_KEY の値を使用します。
126
126
  * 言い換えると、環境変数を設定すれば、Gem を使用する度にアクセスキーを登録する手間を省くことができます。
127
127
  * api_version: API のバージョン
128
- * 省略した場合は、バージョン 'v1-rc.1' API にアクセスします。
129
- * 現時点 (2016-12-01 02:13+0900) では、公開されている API は v1-rc.1 のみです。したがって、この設定を行う必要はありません。
130
- * 将来的に新しいバージョンが公開された場合に備え、設定メニューを作ってあります。
128
+ * 省略した場合は、バージョン`v1`の API にアクセスします。
129
+   * `v1`以外のバージョンのAPIを利用する場合は指定が必須です。
130
+ * 補足: API公開時のバージョンは`v1-rc.1`でしたが、2016年12月末頃より`v1`が公開されました。現時点 (2017-01-18 05:55+0900) では`v1-rc.1`へアクセスが可能です。
131
+ * 注意: APIの利用規約が変更されたため、[RESAS-API - マイページ](https://opendata.resas-portal.go.jp/mypage.html) 内で新規約への同意をしないとAPIのアクセスができなくなるようです。
131
132
  * その他の設定メニューもありますが、利用する上で考慮する必要はありません。
132
133
 
133
134
  #### 設定内容を確認する
@@ -138,7 +139,7 @@ Resas::Api.options
138
139
  :access_key=>"[ApiAccessKey]",
139
140
  :base_url=>"https://opendata.resas-portal.go.jp",
140
141
  :format=>:json,
141
- :api_version=>"v1-rc.1",
142
+ :api_version=>"v1",
142
143
  :adapter=>:net_http
143
144
  }
144
145
  ```
@@ -152,7 +153,7 @@ Resas::Api.reset!
152
153
  :access_key=>"[ApiAccessKey]",
153
154
  :base_url=>"https://opendata.resas-portal.go.jp",
154
155
  :format=>:json,
155
- :api_version=>"v1-rc.1",
156
+ :api_version=>"v1",
156
157
  :adapter=>:net_http
157
158
  }
158
159
 
@@ -163,7 +164,7 @@ Resas::Api.reset!
163
164
  #### 例1 都道府県一覧を取得
164
165
 
165
166
  * 利用するAPI
166
- * [都道府県一覧](https://opendata.resas-portal.go.jp/docs/api/v1-rc.1/prefectures.html)
167
+ * [都道府県一覧](https://opendata.resas-portal.go.jp/docs/api/v1/prefectures.html)
167
168
 
168
169
  ```ruby
169
170
  response_body = Resas::Api.client.get( 'prefectures' )
@@ -192,7 +193,7 @@ response_body
192
193
  @client=#<Resas::Api::Client:0x007fa7194ad298
193
194
  @access_key="[ApiAccessKey]",
194
195
  @adapter=:net_http,
195
- @api_version="v1-rc.1",
196
+ @api_version="v1",
196
197
  @base_url="https://opendata.resas-portal.go.jp",
197
198
  @format=:json
198
199
  >,
@@ -264,7 +265,7 @@ response_body.result
264
265
 
265
266
  ```ruby
266
267
  response_body.path
267
- #=> #<URI::HTTPS https://opendata.resas-portal.go.jp/api/v1-rc.1/prefectures>
268
+ #=> #<URI::HTTPS https://opendata.resas-portal.go.jp/api/v1/prefectures>
268
269
 
269
270
  response_body.path( full: false )
270
271
  => #<URI::Generic prefectures>
@@ -274,7 +275,7 @@ response_body.path( full: false )
274
275
 
275
276
  ```ruby
276
277
  Resas::Api.client.path( 'prefectures' )
277
- => #<URI::HTTPS https://opendata.resas-portal.go.jp/api/v1-rc.1/prefectures>
278
+ => #<URI::HTTPS https://opendata.resas-portal.go.jp/api/v1/prefectures>
278
279
 
279
280
  Resas::Api.client.path( 'prefectures', full: false )
280
281
  => #<URI::Generic prefectures>
@@ -284,7 +285,7 @@ Resas::Api.client.path( 'prefectures', full: false )
284
285
  #### 例2 島根県の市町村一覧を取得する
285
286
 
286
287
  * 利用するAPI
287
- * [市区町村一覧](https://opendata.resas-portal.go.jp/docs/api/v1-rc.1/cities.html)
288
+ * [市区町村一覧](https://opendata.resas-portal.go.jp/docs/api/v1/cities.html)
288
289
 
289
290
  例1からわかるように、島根県には都道府県コード`'32'`が割り当てられています。
290
291
 
@@ -325,7 +326,7 @@ response_body
325
326
  @client=#<Resas::Api::Client:0x007f8dfa8288d8
326
327
  @access_key="[ApiAccessKey]",
327
328
  @adapter=:net_http,
328
- @api_version="v1-rc.1",
329
+ @api_version="v1",
329
330
  @base_url="https://opendata.resas-portal.go.jp",
330
331
  @format=:json
331
332
  >,
@@ -368,14 +369,14 @@ response_body.result
368
369
  #### 例3 島根県の「食料品製造業」について調べる
369
370
 
370
371
  * 利用するAPI
371
- * [製造業事業所単位分析_継続・参入・退出事業所別の推移](https://opendata.resas-portal.go.jp/docs/api/v1-rc.1/industry/power/forManufacturerEstablishments.html)
372
- * [産業中分類コード](https://opendata.resas-portal.go.jp/docs/api/v1-rc.1/industries/middle.html)
372
+ * [製造業事業所単位分析_継続・参入・退出事業所別の推移](https://opendata.resas-portal.go.jp/docs/api/v1/industry/power/forManufacturerEstablishments.html)
373
+ * [産業中分類コード](https://opendata.resas-portal.go.jp/docs/api/v1/industries/middle.html)
373
374
 
374
- API [製造業事業所単位分析_継続・参入・退出事業所別の推移](https://opendata.resas-portal.go.jp/docs/api/v1-rc.1/industry/power/forManufacturerEstablishments.html)を利用します。
375
+ API [製造業事業所単位分析_継続・参入・退出事業所別の推移](https://opendata.resas-portal.go.jp/docs/api/v1/industry/power/forManufacturerEstablishments.html)を利用します。
375
376
 
376
377
  ##### Step1 産業中分類コードを取得
377
378
 
378
- その前に、[製造業事業所単位分析_継続・参入・退出事業所別の推移](https://opendata.resas-portal.go.jp/docs/api/v1-rc.1/industry/power/forManufacturerEstablishments.html)で利用する[産業中分類コード](https://opendata.resas-portal.go.jp/docs/api/v1-rc.1/industries/middle.html)を取得しましょう。
379
+ その前に、[製造業事業所単位分析_継続・参入・退出事業所別の推移](https://opendata.resas-portal.go.jp/docs/api/v1/industry/power/forManufacturerEstablishments.html)で利用する[産業中分類コード](https://opendata.resas-portal.go.jp/docs/api/v1/industries/middle.html)を取得しましょう。
379
380
 
380
381
  ```ruby
381
382
  response_body = Resas::Api.client.get( 'industries/middle' )
@@ -407,7 +408,7 @@ response_body
407
408
  @client= #<Resas::Api::Client:0x007ffb23b45c78
408
409
  @access_key="[ApiAccessKey]",
409
410
  @adapter=:net_http,
410
- @api_version="v1-rc.1",
411
+ @api_version="v1",
411
412
  @base_url="https://opendata.resas-portal.go.jp",
412
413
  @format=:json
413
414
  >,
@@ -474,7 +475,7 @@ response_body
474
475
  @client=#<Resas::Api::Client:0x007fbce4855b08
475
476
  @access_key="[ApiAccessKey]",
476
477
  @adapter=:net_http,
477
- @api_version="v1-rc.1",
478
+ @api_version="v1",
478
479
  @base_url="https://opendata.resas-portal.go.jp",
479
480
  @format=:json
480
481
  >,
@@ -5,11 +5,11 @@ require_relative 'api_ext/default_configuration'
5
5
 
6
6
  # RESAS (Regional Economy Society Analyzing System) に関する機能を格納する名前空間
7
7
  # @see {https://resas.go.jp/}
8
+ # @see {https://opendata.resas-portal.go.jp/}
9
+ # @see {https://opendata.resas-portal.go.jp/docs/api/v1/index.html}
8
10
  module Resas
9
11
 
10
12
  # RESAS API を扱うための Gem - トップの名前空間
11
- # @see {https://opendata.resas-portal.go.jp/}
12
- # @see {https://opendata.resas-portal.go.jp/docs/api/v1-rc.1/index.html}
13
13
  module Api
14
14
 
15
15
  include Nard::Appi::Base
@@ -2,11 +2,11 @@ require 'faraday'
2
2
 
3
3
  # RESAS (Regional Economy Society Analyzing System) に関する機能を格納する名前空間
4
4
  # @see {https://resas.go.jp/}
5
+ # @see {https://opendata.resas-portal.go.jp/}
6
+ # @see {https://opendata.resas-portal.go.jp/docs/api/v1/index.html}
5
7
  module Resas
6
8
 
7
9
  # RESAS API を扱うための Gem - トップの名前空間
8
- # @see {https://opendata.resas-portal.go.jp/}
9
- # @see {https://opendata.resas-portal.go.jp/docs/api/v1-rc.1/index.html}
10
10
  module Api
11
11
 
12
12
  module ApiExt
@@ -28,7 +28,7 @@ module Resas
28
28
 
29
29
  # RESAS API エンドポイント
30
30
  # @return [String]
31
- # @see {https://opendata.resas-portal.go.jp/docs/api/v1-rc.1/index.html}
31
+ # @see {https://opendata.resas-portal.go.jp/docs/api/v1/index.html}
32
32
  base_url: 'https://opendata.resas-portal.go.jp',
33
33
 
34
34
  # API から取得する値のフォーマット
@@ -37,10 +37,10 @@ module Resas
37
37
 
38
38
  # 接続先の RESAS API のバージョン
39
39
  # @return [String]
40
- # @note Default: v1-rc.1
40
+ # @note Default: v1
41
41
  # @note この Gem のバージョンではない! Gem のバージョンは、Resas::Api::VERSION または Resas::Api.gem_version で取得する。
42
42
  # @todo [Future] API の仕様が大幅に変更された場合の場合分け
43
- api_version: 'v1-rc.1',
43
+ api_version: 'v1',
44
44
 
45
45
  # Faraday で使用する HTTP クライアントの種類
46
46
  # @return [Net::HTTP] (Default)
@@ -6,11 +6,11 @@ require 'uri'
6
6
 
7
7
  # RESAS (Regional Economy Society Analyzing System) に関する機能を格納する名前空間
8
8
  # @see {https://resas.go.jp/}
9
+ # @see {https://opendata.resas-portal.go.jp/}
10
+ # @see {https://opendata.resas-portal.go.jp/docs/api/v1/index.html}
9
11
  module Resas
10
12
 
11
13
  # RESAS API を扱うための Gem - トップの名前空間
12
- # @see {https://opendata.resas-portal.go.jp/}
13
- # @see {https://opendata.resas-portal.go.jp/docs/api/v1-rc.1/index.html}
14
14
  module Api
15
15
 
16
16
  # RESAS API へアクセスするクライアントのクラス
@@ -2,11 +2,11 @@ require 'nard/appi/client/util/base_normalizer'
2
2
 
3
3
  # RESAS (Regional Economy Society Analyzing System) に関する機能を格納する名前空間
4
4
  # @see {https://resas.go.jp/}
5
+ # @see {https://opendata.resas-portal.go.jp/}
6
+ # @see {https://opendata.resas-portal.go.jp/docs/api/v1/index.html}
5
7
  module Resas
6
8
 
7
9
  # RESAS API を扱うための Gem - トップの名前空間
8
- # @see {https://opendata.resas-portal.go.jp/}
9
- # @see {https://opendata.resas-portal.go.jp/docs/api/v1-rc.1/index.html}
10
10
  module Api
11
11
 
12
12
  class Client
@@ -2,11 +2,11 @@ require_relative './base_normalizer'
2
2
 
3
3
  # RESAS (Regional Economy Society Analyzing System) に関する機能を格納する名前空間
4
4
  # @see {https://resas.go.jp/}
5
+ # @see {https://opendata.resas-portal.go.jp/}
6
+ # @see {https://opendata.resas-portal.go.jp/docs/api/v1/index.html}
5
7
  module Resas
6
8
 
7
9
  # RESAS API を扱うための Gem - トップの名前空間
8
- # @see {https://opendata.resas-portal.go.jp/}
9
- # @see {https://opendata.resas-portal.go.jp/docs/api/v1-rc.1/index.html}
10
10
  module Api
11
11
 
12
12
  class Client
@@ -2,11 +2,11 @@ require_relative './base_normalizer'
2
2
 
3
3
  # RESAS (Regional Economy Society Analyzing System) に関する機能を格納する名前空間
4
4
  # @see {https://resas.go.jp/}
5
+ # @see {https://opendata.resas-portal.go.jp/}
6
+ # @see {https://opendata.resas-portal.go.jp/docs/api/v1/index.html}
5
7
  module Resas
6
8
 
7
9
  # RESAS API を扱うための Gem - トップの名前空間
8
- # @see {https://opendata.resas-portal.go.jp/}
9
- # @see {https://opendata.resas-portal.go.jp/docs/api/v1-rc.1/index.html}
10
10
  module Api
11
11
 
12
12
  class Client
@@ -3,11 +3,11 @@ require 'faraday_middleware'
3
3
 
4
4
  # RESAS (Regional Economy Society Analyzing System) に関する機能を格納する名前空間
5
5
  # @see {https://resas.go.jp/}
6
+ # @see {https://opendata.resas-portal.go.jp/}
7
+ # @see {https://opendata.resas-portal.go.jp/docs/api/v1/index.html}
6
8
  module Resas
7
9
 
8
10
  # RESAS API を扱うための Gem - トップの名前空間
9
- # @see {https://opendata.resas-portal.go.jp/}
10
- # @see {https://opendata.resas-portal.go.jp/docs/api/v1-rc.1/index.html}
11
11
  module Api
12
12
 
13
13
  module ClientExt
@@ -1,16 +1,16 @@
1
1
  # RESAS (Regional Economy Society Analyzing System) に関する機能を格納する名前空間
2
2
  # @see {https://resas.go.jp/}
3
+ # @see {https://opendata.resas-portal.go.jp/}
4
+ # @see {https://opendata.resas-portal.go.jp/docs/api/v1/index.html}
3
5
  module Resas
4
6
 
5
7
  # RESAS API を扱うための Gem - トップの名前空間
6
- # @see {https://opendata.resas-portal.go.jp/}
7
- # @see {https://opendata.resas-portal.go.jp/docs/api/v1-rc.1/index.html}
8
8
  module Api
9
9
 
10
10
  module ClientExt
11
11
 
12
12
  # 各 API のエンドポイントに直接アクセスするためのメソッドを格納するモジュール
13
- # @see API概要 > 一覧 (https://opendata.resas-portal.go.jp/docs/api/v1-rc.1/index.html)
13
+ # @see API概要 > 一覧 (https://opendata.resas-portal.go.jp/docs/api/v1/index.html)
14
14
  module Endpoints
15
15
 
16
16
  # @!group 共通 > 都道府県、市区町村
@@ -10,11 +10,11 @@ require_relative './../response/body'
10
10
 
11
11
  # RESAS (Regional Economy Society Analyzing System) に関する機能を格納する名前空間
12
12
  # @see {https://resas.go.jp/}
13
+ # @see {https://opendata.resas-portal.go.jp/}
14
+ # @see {https://opendata.resas-portal.go.jp/docs/api/v1/index.html}
13
15
  module Resas
14
16
 
15
17
  # RESAS API を扱うための Gem - トップの名前空間
16
- # @see {https://opendata.resas-portal.go.jp/}
17
- # @see {https://opendata.resas-portal.go.jp/docs/api/v1-rc.1/index.html}
18
18
  module Api
19
19
 
20
20
  module ClientExt
@@ -2,11 +2,11 @@ require_relative './base_error'
2
2
 
3
3
  # RESAS (Regional Economy Society Analyzing System) に関する機能を格納する名前空間
4
4
  # @see {https://resas.go.jp/}
5
+ # @see {https://opendata.resas-portal.go.jp/}
6
+ # @see {https://opendata.resas-portal.go.jp/docs/api/v1/index.html}
5
7
  module Resas
6
8
 
7
9
  # RESAS API を扱うための Gem - トップの名前空間
8
- # @see {https://opendata.resas-portal.go.jp/}
9
- # @see {https://opendata.resas-portal.go.jp/docs/api/v1-rc.1/index.html}
10
10
  module Api
11
11
 
12
12
  module Response
@@ -1,10 +1,10 @@
1
1
  # RESAS (Regional Economy Society Analyzing System) に関する機能を格納する名前空間
2
2
  # @see {https://resas.go.jp/}
3
+ # @see {https://opendata.resas-portal.go.jp/}
4
+ # @see {https://opendata.resas-portal.go.jp/docs/api/v1/index.html}
3
5
  module Resas
4
6
 
5
7
  # RESAS API を扱うための Gem - トップの名前空間
6
- # @see {https://opendata.resas-portal.go.jp/}
7
- # @see {https://opendata.resas-portal.go.jp/docs/api/v1-rc.1/index.html}
8
8
  module Api
9
9
 
10
10
  module Response
@@ -10,11 +10,11 @@ require_relative './base_error'
10
10
 
11
11
  # RESAS (Regional Economy Society Analyzing System) に関する機能を格納する名前空間
12
12
  # @see {https://resas.go.jp/}
13
+ # @see {https://opendata.resas-portal.go.jp/}
14
+ # @see {https://opendata.resas-portal.go.jp/docs/api/v1/index.html}
13
15
  module Resas
14
16
 
15
17
  # RESAS API を扱うための Gem - トップの名前空間
16
- # @see {https://opendata.resas-portal.go.jp/}
17
- # @see {https://opendata.resas-portal.go.jp/docs/api/v1-rc.1/index.html}
18
18
  module Api
19
19
 
20
20
  module Response
@@ -2,11 +2,11 @@ require_relative './base_error'
2
2
 
3
3
  # RESAS (Regional Economy Society Analyzing System) に関する機能を格納する名前空間
4
4
  # @see {https://resas.go.jp/}
5
+ # @see {https://opendata.resas-portal.go.jp/}
6
+ # @see {https://opendata.resas-portal.go.jp/docs/api/v1/index.html}
5
7
  module Resas
6
8
 
7
9
  # RESAS API を扱うための Gem - トップの名前空間
8
- # @see {https://opendata.resas-portal.go.jp/}
9
- # @see {https://opendata.resas-portal.go.jp/docs/api/v1-rc.1/index.html}
10
10
  module Api
11
11
 
12
12
  module Response
@@ -2,11 +2,11 @@ require_relative './base_error'
2
2
 
3
3
  # RESAS (Regional Economy Society Analyzing System) に関する機能を格納する名前空間
4
4
  # @see {https://resas.go.jp/}
5
+ # @see {https://opendata.resas-portal.go.jp/}
6
+ # @see {https://opendata.resas-portal.go.jp/docs/api/v1/index.html}
5
7
  module Resas
6
8
 
7
9
  # RESAS API を扱うための Gem - トップの名前空間
8
- # @see {https://opendata.resas-portal.go.jp/}
9
- # @see {https://opendata.resas-portal.go.jp/docs/api/v1-rc.1/index.html}
10
10
  module Api
11
11
 
12
12
  module Response
@@ -2,11 +2,11 @@ require_relative './base_error'
2
2
 
3
3
  # RESAS (Regional Economy Society Analyzing System) に関する機能を格納する名前空間
4
4
  # @see {https://resas.go.jp/}
5
+ # @see {https://opendata.resas-portal.go.jp/}
6
+ # @see {https://opendata.resas-portal.go.jp/docs/api/v1/index.html}
5
7
  module Resas
6
8
 
7
9
  # RESAS API を扱うための Gem - トップの名前空間
8
- # @see {https://opendata.resas-portal.go.jp/}
9
- # @see {https://opendata.resas-portal.go.jp/docs/api/v1-rc.1/index.html}
10
10
  module Api
11
11
 
12
12
  module Response
@@ -2,11 +2,11 @@ require_relative './base_error'
2
2
 
3
3
  # RESAS (Regional Economy Society Analyzing System) に関する機能を格納する名前空間
4
4
  # @see {https://resas.go.jp/}
5
+ # @see {https://opendata.resas-portal.go.jp/}
6
+ # @see {https://opendata.resas-portal.go.jp/docs/api/v1/index.html}
5
7
  module Resas
6
8
 
7
9
  # RESAS API を扱うための Gem - トップの名前空間
8
- # @see {https://opendata.resas-portal.go.jp/}
9
- # @see {https://opendata.resas-portal.go.jp/docs/api/v1-rc.1/index.html}
10
10
  module Api
11
11
 
12
12
  module Response
@@ -10,116 +10,116 @@ namespace :make_methods do
10
10
  # 共通
11
11
 
12
12
  texts << <<-TXT
13
- 都道府県一覧 api/v1-rc.1/prefectures
14
- 市区町村一覧 api/v1-rc.1/cities
15
- 旧市区町村一覧 api/v1-rc.1/oldCities
13
+ 都道府県一覧 api/v1/prefectures
14
+ 市区町村一覧 api/v1/cities
15
+ 旧市区町村一覧 api/v1/oldCities
16
16
  TXT
17
17
 
18
18
  texts << <<-TXT
19
- 産業大分類 api/v1-rc.1/industries/broad
20
- 産業中分類 api/v1-rc.1/industries/middle
21
- 産業小分類 api/v1-rc.1/industries/narrow
22
- 職業大分類 api/v1-rc.1/jobs/broad
23
- 職業中分類 api/v1-rc.1/jobs/middle
19
+ 産業大分類 api/v1/industries/broad
20
+ 産業中分類 api/v1/industries/middle
21
+ 産業小分類 api/v1/industries/narrow
22
+ 職業大分類 api/v1/jobs/broad
23
+ 職業中分類 api/v1/jobs/middle
24
24
  TXT
25
25
 
26
26
  texts << <<-TXT
27
- 特許.技術分野 api/v1-rc.1/patents/broad
28
- 特許.技術テーマ api/v1-rc.1/patents/middle
29
- 税関 api/v1-rc.1/customs
30
- 輸出入花火図.取引国_地域 api/v1-rc.1/regions/broad
31
- 輸出入花火図.取引国_国 api/v1-rc.1/regions/middle
32
- 農業部門 api/v1-rc.1/regions/agricultureDepartments
33
- 特許権者の所在地 api/v1-rc.1/patents/locations
34
- 輸出入花火図.品目_大分類 api/v1-rc.1/tradeInfoItemTypes/broad
35
- 輸出入花火図.品目_中分類 api/v1-rc.1/tradeInfoItemTypes/middle
36
- 輸出入花火図.品目_小分類 api/v1-rc.1/tradeInfoItemTypes/narrow
27
+ 特許.技術分野 api/v1/patents/broad
28
+ 特許.技術テーマ api/v1/patents/middle
29
+ 税関 api/v1/customs
30
+ 輸出入花火図.取引国_地域 api/v1/regions/broad
31
+ 輸出入花火図.取引国_国 api/v1/regions/middle
32
+ 農業部門 api/v1/regions/agricultureDepartments
33
+ 特許権者の所在地 api/v1/patents/locations
34
+ 輸出入花火図.品目_大分類 api/v1/tradeInfoItemTypes/broad
35
+ 輸出入花火図.品目_中分類 api/v1/tradeInfoItemTypes/middle
36
+ 輸出入花火図.品目_小分類 api/v1/tradeInfoItemTypes/narrow
37
37
  TXT
38
38
 
39
39
  # 産業
40
40
 
41
41
  texts << <<-TXT
42
- 特許一覧 api/v1-rc.1/industry/patent/list
43
- 国、税関別輸出入 api/v1-rc.1/industry/export/fromTo
44
- 海外への企業進出動向 api/v1-rc.1/industry/globalmarket/perPref
45
- 産業別特化係数 api/v1-rc.1/industry/power/forIndustry
46
- 地域別特化係数 api/v1-rc.1/industry/power/forArea
47
- 製造業事業所単位分析_継続・参入・退出事業所別の推移 api/v1-rc.1/industry/power/forManufacturerEstablishments
42
+ 特許一覧 api/v1/industry/patent/list
43
+ 国、税関別輸出入 api/v1/industry/export/fromTo
44
+ 海外への企業進出動向 api/v1/industry/globalmarket/perPref
45
+ 産業別特化係数 api/v1/industry/power/forIndustry
46
+ 地域別特化係数 api/v1/industry/power/forArea
47
+ 製造業事業所単位分析_継続・参入・退出事業所別の推移 api/v1/industry/power/forManufacturerEstablishments
48
48
  TXT
49
49
 
50
50
  # 農林水産業
51
51
 
52
52
  texts << <<-TXT
53
- 農産物の出荷先別販売金額構成 api/v1-rc.1/agriculture/sales/shipValue
54
- 農産物の出荷先別経営体数割合 api/v1-rc.1/agriculture/sales/shipRatio
55
- 経営耕地面積 api/v1-rc.1/agriculture/land/forStacked
56
- 経営耕地面積規模別の経営体割合 api/v1-rc.1/agriculture/land/Ratio
57
- 農地流動化率 api/v1-rc.1/agriculture/land/forMobility
58
- 耕作放棄地率 api/v1-rc.1/agriculture/land/forAbandonment
59
- 農業部門別販売金額 api/v1-rc.1/agriculture/all/forStacked
60
- 年間延べ農作業日数 api/v1-rc.1/agriculture/crops/workingDays
61
- 農産物販売金額(人日あたり) api/v1-rc.1/agriculture/crops/sales
62
- 農業経営者・農業就業人口の年齢構成 api/v1-rc.1/agriculture/crops/farmersAgeStructure
63
- 農業経営者・農業就業人口の平均年齢 api/v1-rc.1/agriculture/crops/farmersAverageAge
64
- 農業生産関連事業の実施状況(経営体数) api/v1-rc.1/agriculture/crops/relatedBusiness
65
- 農業経営体の法人化率 api/v1-rc.1/agriculture/crops/averageOfCorporate
53
+ 農産物の出荷先別販売金額構成 api/v1/agriculture/sales/shipValue
54
+ 農産物の出荷先別経営体数割合 api/v1/agriculture/sales/shipRatio
55
+ 経営耕地面積 api/v1/agriculture/land/forStacked
56
+ 経営耕地面積規模別の経営体割合 api/v1/agriculture/land/Ratio
57
+ 農地流動化率 api/v1/agriculture/land/forMobility
58
+ 耕作放棄地率 api/v1/agriculture/land/forAbandonment
59
+ 農業部門別販売金額 api/v1/agriculture/all/forStacked
60
+ 年間延べ農作業日数 api/v1/agriculture/crops/workingDays
61
+ 農産物販売金額(人日あたり) api/v1/agriculture/crops/sales
62
+ 農業経営者・農業就業人口の年齢構成 api/v1/agriculture/crops/farmersAgeStructure
63
+ 農業経営者・農業就業人口の平均年齢 api/v1/agriculture/crops/farmersAverageAge
64
+ 農業生産関連事業の実施状況(経営体数) api/v1/agriculture/crops/relatedBusiness
65
+ 農業経営体の法人化率 api/v1/agriculture/crops/averageOfCorporate
66
66
  TXT
67
67
 
68
68
  texts << <<-TXT
69
- 林業総収入(総額) api/v1-rc.1/forestry/income/forStacked
70
- 林産物販売金額(経営体あたり) api/v1-rc.1/forestry/income/forSales
71
- 林作業請負収入(経営体あたり) api/v1-rc.1/forestry/income/forContractRevenue
72
- 林産物販売金額帯別の経営体割合 api/v1-rc.1/forestry/income/forSalesRatio
73
- 林作業請負収入金額帯別の経営体割合 api/v1-rc.1/forestry/income/forContractRevenueRatio
74
- 主要林業部門別延べ経営体数 api/v1-rc.1/forestry/income/allPortfolio
75
- 主要林業部門別延べ経営体数構成 api/v1-rc.1/forestry/income/allForStacked
69
+ 林業総収入(総額) api/v1/forestry/income/forStacked
70
+ 林産物販売金額(経営体あたり) api/v1/forestry/income/forSales
71
+ 林作業請負収入(経営体あたり) api/v1/forestry/income/forContractRevenue
72
+ 林産物販売金額帯別の経営体割合 api/v1/forestry/income/forSalesRatio
73
+ 林作業請負収入金額帯別の経営体割合 api/v1/forestry/income/forContractRevenueRatio
74
+ 主要林業部門別延べ経営体数 api/v1/forestry/income/allPortfolio
75
+ 主要林業部門別延べ経営体数構成 api/v1/forestry/income/allForStacked
76
76
  TXT
77
77
 
78
78
  texts << <<-TXT
79
- 主要海面漁業種類別延べ経営体数構成 api/v1-rc.1/fishery/sea/staple
80
- 海面漁獲物等販売金額(総額) api/v1-rc.1/fishery/sea/totalSales
81
- 海面漁獲物等販売金額(経営体あたり) api/v1-rc.1/fishery/sea/managementUnitSales
82
- 海面漁獲物等販売金額帯別の経営体割合 api/v1-rc.1/fishery/sea/sales
83
- 海面漁獲物等出荷先別販売金額構成 api/v1-rc.1/fishery/sea/shipValue
84
- 海面漁獲物等出荷先別経営体数割合 api/v1-rc.1/fishery/sea/shipRatio
85
- 海面養殖販売金額(総額) api/v1-rc.1/fishery/sea/aquacultureTotalSales
86
- 海面養殖販売金額(経営体あたり) api/v1-rc.1/fishery/sea/aquacultureManagementUnitSales
87
- 海面養殖販売金額帯別の経営体割合 api/v1-rc.1/fishery/sea/aquacultureSales
79
+ 主要海面漁業種類別延べ経営体数構成 api/v1/fishery/sea/staple
80
+ 海面漁獲物等販売金額(総額) api/v1/fishery/sea/totalSales
81
+ 海面漁獲物等販売金額(経営体あたり) api/v1/fishery/sea/managementUnitSales
82
+ 海面漁獲物等販売金額帯別の経営体割合 api/v1/fishery/sea/sales
83
+ 海面漁獲物等出荷先別販売金額構成 api/v1/fishery/sea/shipValue
84
+ 海面漁獲物等出荷先別経営体数割合 api/v1/fishery/sea/shipRatio
85
+ 海面養殖販売金額(総額) api/v1/fishery/sea/aquacultureTotalSales
86
+ 海面養殖販売金額(経営体あたり) api/v1/fishery/sea/aquacultureManagementUnitSales
87
+ 海面養殖販売金額帯別の経営体割合 api/v1/fishery/sea/aquacultureSales
88
88
  TXT
89
89
 
90
90
  # 観光
91
91
 
92
92
  texts << <<-TXT
93
- 指定地域への国籍別訪問者数 api/v1-rc.1/tourism/foreigners/forFrom
94
- 指定国籍からの訪問者数 api/v1-rc.1/tourism/foreigners/forTo
93
+ 指定地域への国籍別訪問者数 api/v1/tourism/foreigners/forFrom
94
+ 指定国籍からの訪問者数 api/v1/tourism/foreigners/forTo
95
95
  TXT
96
96
 
97
97
  # 人口
98
98
 
99
99
  texts << <<-TXT
100
- 人口の自然増減 api/v1-rc.1/population/nature
101
- 人口構成 api/v1-rc.1/population/composition/perYear
102
- 人口ピラミッド api/v1-rc.1/population/composition/pyramid
103
- 人口増減率 api/v1-rc.1/population/sum/perYear
104
- 出生数・死亡数/転入数・転出数 api/v1-rc.1/population/sum/estimate
105
- 将来人口推計 api/v1-rc.1/population/future/cities
100
+ 人口の自然増減 api/v1/population/nature
101
+ 人口構成 api/v1/population/composition/perYear
102
+ 人口ピラミッド api/v1/population/composition/pyramid
103
+ 人口増減率 api/v1/population/sum/perYear
104
+ 出生数・死亡数/転入数・転出数 api/v1/population/sum/estimate
105
+ 将来人口推計 api/v1/population/future/cities
106
106
  TXT
107
107
 
108
108
  # 自治体比較
109
109
 
110
110
  texts << <<-TXT
111
- 企業数 api/v1-rc.1/municipality/company/perYear
112
- 事業所数 api/v1-rc.1/municipality/plant/perYear
113
- 創業比率 api/v1-rc.1/municipality/foundation/perYear
114
- 一人当たり地方税 api/v1-rc.1/municipality/taxes/perYear
115
- 有効求人倍率 api/v1-rc.1/municipality/job/perYear
116
- 製造品出荷額 api/v1-rc.1/municipality/manufacture/perYear
117
- 従業者数(事業所単位) api/v1-rc.1/municipality/employee/perYear
118
- 付加価値額(企業単位) api/v1-rc.1/municipality/value/perYear
119
- 労働生産性(企業単位) api/v1-rc.1/municipality/labor/perYear
120
- 黒字赤字企業比率 api/v1-rc.1/municipality/surplus/perYear
121
- 一人当たり賃金 api/v1-rc.1/municipality/wages/perYear
122
- 年間商品販売額 api/v1-rc.1/municipality/sales/perYear
111
+ 企業数 api/v1/municipality/company/perYear
112
+ 事業所数 api/v1/municipality/plant/perYear
113
+ 創業比率 api/v1/municipality/foundation/perYear
114
+ 一人当たり地方税 api/v1/municipality/taxes/perYear
115
+ 有効求人倍率 api/v1/municipality/job/perYear
116
+ 製造品出荷額 api/v1/municipality/manufacture/perYear
117
+ 従業者数(事業所単位) api/v1/municipality/employee/perYear
118
+ 付加価値額(企業単位) api/v1/municipality/value/perYear
119
+ 労働生産性(企業単位) api/v1/municipality/labor/perYear
120
+ 黒字赤字企業比率 api/v1/municipality/surplus/perYear
121
+ 一人当たり賃金 api/v1/municipality/wages/perYear
122
+ 年間商品販売額 api/v1/municipality/sales/perYear
123
123
  TXT
124
124
 
125
125
 
@@ -1,15 +1,15 @@
1
1
  # RESAS (Regional Economy Society Analyzing System) に関する機能を格納する名前空間
2
2
  # @see {https://resas.go.jp/}
3
+ # @see {https://opendata.resas-portal.go.jp/}
4
+ # @see {https://opendata.resas-portal.go.jp/docs/api/v1/index.html}
3
5
  module Resas
4
6
 
5
7
  # RESAS API を扱うための Gem - トップの名前空間
6
- # @see {https://opendata.resas-portal.go.jp/}
7
- # @see {https://opendata.resas-portal.go.jp/docs/api/v1-rc.1/index.html}
8
8
  module Api
9
9
 
10
10
  # この Gem のバージョン
11
11
  # @return [String]
12
- VERSION = '0.3.0'.freeze
12
+ VERSION = '0.3.1'.freeze
13
13
 
14
14
  end
15
15
  end
metadata CHANGED
@@ -1,14 +1,14 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: resas-api
3
3
  version: !ruby/object:Gem::Version
4
- version: 0.3.0
4
+ version: 0.3.1
5
5
  platform: ruby
6
6
  authors:
7
7
  - Shu Fujita
8
8
  autorequire:
9
9
  bindir: exe
10
10
  cert_chain: []
11
- date: 2016-12-16 00:00:00.000000000 Z
11
+ date: 2017-01-17 00:00:00.000000000 Z
12
12
  dependencies:
13
13
  - !ruby/object:Gem::Dependency
14
14
  name: activesupport