3scale-api 1.2.0 → 1.3.0
Sign up to get free protection for your applications and to get access to all the features.
- checksums.yaml +4 -4
- data/lib/3scale/api/client.rb +7 -4
- data/lib/3scale/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: 8cc00497946c9460c86b1034fc1f910739ac63887a6986ceabd78be8b14b034d
|
4
|
+
data.tar.gz: c352efd9db65cbe4ac61665a04f72171d5cba4cccbbe7d2b4f7324ae0d978694
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: 7f39e195d88356c436c563db1d605ccadfdaca36ee7d2b3e5393d18a7519a36b57340780bf20fdbd4cbb9de89e99804d9e3a6b171260ed72e9891076e774d01d
|
7
|
+
data.tar.gz: 32b338fb32b94052a2fd30485aed130ef692b3d9fd74f908ecdece615ebb0b850ecf3abb14c4653257a62ba8ee5ecae482fbe3a17a6d26312e6cb7eba733baa9
|
data/lib/3scale/api/client.rb
CHANGED
@@ -1,5 +1,8 @@
|
|
1
1
|
module ThreeScale
|
2
2
|
module API
|
3
|
+
MAX_BACKENDS_PER_PAGE = 500
|
4
|
+
MAX_SERVICES_PER_PAGE = 500
|
5
|
+
|
3
6
|
class Client
|
4
7
|
attr_reader :http_client
|
5
8
|
|
@@ -19,8 +22,8 @@ module ThreeScale
|
|
19
22
|
|
20
23
|
# @api public
|
21
24
|
# @return [Array<Hash>]
|
22
|
-
def list_services
|
23
|
-
response = http_client.get('/admin/api/services')
|
25
|
+
def list_services(params = nil)
|
26
|
+
response = http_client.get('/admin/api/services', params: params)
|
24
27
|
extract(collection: 'services', entity: 'service', from: response)
|
25
28
|
end
|
26
29
|
|
@@ -828,8 +831,8 @@ module ThreeScale
|
|
828
831
|
|
829
832
|
# @api public
|
830
833
|
# @return [List]
|
831
|
-
def list_backends
|
832
|
-
response = http_client.get('/admin/api/backend_apis')
|
834
|
+
def list_backends(params = nil)
|
835
|
+
response = http_client.get('/admin/api/backend_apis', params: params)
|
833
836
|
extract(collection: 'backend_apis', entity: 'backend_api', from: response)
|
834
837
|
end
|
835
838
|
|
data/lib/3scale/api/version.rb
CHANGED
metadata
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
--- !ruby/object:Gem::Specification
|
2
2
|
name: 3scale-api
|
3
3
|
version: !ruby/object:Gem::Version
|
4
|
-
version: 1.
|
4
|
+
version: 1.3.0
|
5
5
|
platform: ruby
|
6
6
|
authors:
|
7
7
|
- Michal Cichra
|
@@ -9,7 +9,7 @@ authors:
|
|
9
9
|
autorequire:
|
10
10
|
bindir: exe
|
11
11
|
cert_chain: []
|
12
|
-
date:
|
12
|
+
date: 2021-01-20 00:00:00.000000000 Z
|
13
13
|
dependencies:
|
14
14
|
- !ruby/object:Gem::Dependency
|
15
15
|
name: bundler
|