gds-api-adapters 72.1.0 → 73.0.0
Sign up to get free protection for your applications and to get access to all the features.
- checksums.yaml +4 -4
- data/lib/gds_api/account_api.rb +0 -11
- data/lib/gds_api/test_helpers/account_api.rb +0 -34
- data/lib/gds_api/version.rb +1 -1
- metadata +2 -2
checksums.yaml
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
---
|
2
2
|
SHA256:
|
3
|
-
metadata.gz:
|
4
|
-
data.tar.gz:
|
3
|
+
metadata.gz: e27eb1087cbf7f61da350a3c09dc2d1c235ed5b6ee6b096ae9ca3c3f25edb2e9
|
4
|
+
data.tar.gz: 24af32669af502a68d4085e86be5705e8ff98f6899e50f6b01df1b3b884a2e56
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: b4b6328db22729d14c8f4f456d8886dd2de5de9d75efd1fbb5f00124f1f067fe520ea5556d67ac32ffd36653598ee9895d029abfcd2ecc3a1ef22c8d8b618574
|
7
|
+
data.tar.gz: 9c78e6148f87c00c682222bf1468a32b9e70aa05b7a1163f2aabc2b7d0c050d591a43a80ccf502e6f7c01b695859effc33879ca3ced8dd7f3912eed4a2f75c39
|
data/lib/gds_api/account_api.rb
CHANGED
@@ -89,17 +89,6 @@ class GdsApi::AccountApi < GdsApi::Base
|
|
89
89
|
patch_json("#{endpoint}/api/attributes", { attributes: attributes }, auth_headers(govuk_account_session))
|
90
90
|
end
|
91
91
|
|
92
|
-
# Look up the names of a user's attributes
|
93
|
-
#
|
94
|
-
# @param [String] attributes Names of the attributes to check
|
95
|
-
# @param [String] govuk_account_session Value of the session header
|
96
|
-
#
|
97
|
-
# @return [Hash] The attribute names (if present), and a new session header
|
98
|
-
def get_attributes_names(attributes:, govuk_account_session:)
|
99
|
-
querystring = nested_query_string({ attributes: attributes }.compact)
|
100
|
-
get_json("#{endpoint}/api/attributes/names?#{querystring}", auth_headers(govuk_account_session))
|
101
|
-
end
|
102
|
-
|
103
92
|
# Get the details of an account-linked email subscription.
|
104
93
|
#
|
105
94
|
# @param [String] name Name of the subscription
|
@@ -280,40 +280,6 @@ module GdsApi
|
|
280
280
|
)
|
281
281
|
end
|
282
282
|
|
283
|
-
###########################
|
284
|
-
# GET /api/attributes/names
|
285
|
-
###########################
|
286
|
-
def stub_account_api_get_attributes_names(attributes: [], **options)
|
287
|
-
querystring = Rack::Utils.build_nested_query({ attributes: attributes }.compact)
|
288
|
-
stub_account_api_request(
|
289
|
-
:get,
|
290
|
-
"/api/attributes/names?#{querystring}",
|
291
|
-
response_body: { values: attributes },
|
292
|
-
**options,
|
293
|
-
)
|
294
|
-
end
|
295
|
-
|
296
|
-
def stub_account_api_unauthorized_get_attributes_names(attributes: [], **options)
|
297
|
-
querystring = Rack::Utils.build_nested_query({ attributes: attributes }.compact)
|
298
|
-
stub_account_api_request(
|
299
|
-
:get,
|
300
|
-
"/api/attributes/names?#{querystring}",
|
301
|
-
response_status: 401,
|
302
|
-
**options,
|
303
|
-
)
|
304
|
-
end
|
305
|
-
|
306
|
-
def stub_account_api_forbidden_get_attributes_names(attributes: [], needed_level_of_authentication: "level1", **options)
|
307
|
-
querystring = Rack::Utils.build_nested_query({ attributes: attributes }.compact)
|
308
|
-
stub_account_api_request(
|
309
|
-
:get,
|
310
|
-
"/api/attributes/names?#{querystring}",
|
311
|
-
response_status: 403,
|
312
|
-
response_body: { needed_level_of_authentication: needed_level_of_authentication },
|
313
|
-
**options,
|
314
|
-
)
|
315
|
-
end
|
316
|
-
|
317
283
|
######################
|
318
284
|
# GET /api/saved-pages
|
319
285
|
######################
|
data/lib/gds_api/version.rb
CHANGED
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:
|
4
|
+
version: 73.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: 2021-
|
11
|
+
date: 2021-08-26 00:00:00.000000000 Z
|
12
12
|
dependencies:
|
13
13
|
- !ruby/object:Gem::Dependency
|
14
14
|
name: addressable
|