gds-api-adapters 79.2.0 → 80.0.0

Sign up to get free protection for your applications and to get access to all the features.
checksums.yaml CHANGED
@@ -1,7 +1,7 @@
1
1
  ---
2
2
  SHA256:
3
- metadata.gz: 314781375647d75f9d65da9f5cdc7eaeadefb909c9e300645f50add8a66fac77
4
- data.tar.gz: b8c6e5a17e7c0dc2d549cc0330655fbc9e03471cbbd4a217afc508977d9a531a
3
+ metadata.gz: 1f6921e5174a36bd20b7d8f6a446d4764778acac96e707108ed4fd581d8261e8
4
+ data.tar.gz: 00b4f87f11ee027458c97f21216c43ba42ad371faedbc1ce4e3cb5d886b32126
5
5
  SHA512:
6
- metadata.gz: 595735b215edde32f93d78ce0137e1dc9e34a87e8da3a3e9c92536c54149b39f1cfa879d872bd209ee1851e45f4ae8052bf5e83e603a96976fd1f0fc73de944c
7
- data.tar.gz: cfedf9155d36cc2e55068722b5a01d54469f4ce8177d3147a51a308e25eb820e552d57b64cb312dab120b7ed32b29ff793ef5a3f498dde5d74d2a95a19b4435b
6
+ metadata.gz: 62c4ee4274480082f184e019de3307961b94b2e14840a5e7a9ddf82c1521bc35e66586414bf6a5465e1e06c0c3213194945c84ad48ea0801f8f5e430bb8b2280
7
+ data.tar.gz: 26baf319e1e5a0072692b570330bb0bb44fbf17d9f2fb43765f39ae9307ecb7c0ca25da823d30e960f5100362d645d47fce8e3717a4667f3533e4dd9615b3748
@@ -150,23 +150,6 @@ class GdsApi::PublishingApi < GdsApi::Base
150
150
  post_json(republish_url(content_id), params)
151
151
  end
152
152
 
153
- # Import content into the publishing API
154
- #
155
- # The publishing-api will delete any content which has the content
156
- # id provided, and then import the data given.
157
- #
158
- # @param content_id [UUID]
159
- # @param content_items [Array]
160
- #
161
- # @see https://github.com/alphagov/publishing-api/blob/main/docs/api.md#post-v2contentcontent_idimport
162
- def import(content_id, locale, content_items)
163
- params = {
164
- history: content_items,
165
- }
166
-
167
- post_json("#{endpoint}/v2/content/#{content_id}/import?locale=#{locale}", params)
168
- end
169
-
170
153
  # Unpublish a content item
171
154
  #
172
155
  # The publishing API will "unpublish" a live item, to remove it from the public
@@ -1,3 +1,3 @@
1
1
  module GdsApi
2
- VERSION = "79.2.0".freeze
2
+ VERSION = "80.0.0".freeze
3
3
  end
metadata CHANGED
@@ -1,14 +1,14 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: gds-api-adapters
3
3
  version: !ruby/object:Gem::Version
4
- version: 79.2.0
4
+ version: 80.0.0
5
5
  platform: ruby
6
6
  authors:
7
7
  - GOV.UK Dev
8
8
  autorequire:
9
9
  bindir: bin
10
10
  cert_chain: []
11
- date: 2022-05-24 00:00:00.000000000 Z
11
+ date: 2022-06-21 00:00:00.000000000 Z
12
12
  dependencies:
13
13
  - !ruby/object:Gem::Dependency
14
14
  name: addressable