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 CHANGED
@@ -1,7 +1,7 @@
1
1
  ---
2
2
  SHA256:
3
- metadata.gz: ea3ac51993c3762a0a40625807148fdba4dbf390aa032bc97183f660220bf410
4
- data.tar.gz: 3f5c198b2fbe44894007990f4f7e6d926400c4f89597acf9533a281c2fb77cd7
3
+ metadata.gz: 8cc00497946c9460c86b1034fc1f910739ac63887a6986ceabd78be8b14b034d
4
+ data.tar.gz: c352efd9db65cbe4ac61665a04f72171d5cba4cccbbe7d2b4f7324ae0d978694
5
5
  SHA512:
6
- metadata.gz: a5e4aff97c1716b24cdd5ba27385cf2babe88183dcc4894fcad0ca0df3e03df150e77fb80ff01485cca4bea47c4f6bade61a8c31aebdac8bd312aede6799af29
7
- data.tar.gz: 2b86b756c210e5cc8270279d9f8ae258624ae6656594864d63d082b492b91b76e4c62a822ae6654243ba4585565acf6055906327303f71ec6e915b6603f22a16
6
+ metadata.gz: 7f39e195d88356c436c563db1d605ccadfdaca36ee7d2b3e5393d18a7519a36b57340780bf20fdbd4cbb9de89e99804d9e3a6b171260ed72e9891076e774d01d
7
+ data.tar.gz: 32b338fb32b94052a2fd30485aed130ef692b3d9fd74f908ecdece615ebb0b850ecf3abb14c4653257a62ba8ee5ecae482fbe3a17a6d26312e6cb7eba733baa9
@@ -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
 
@@ -1,5 +1,5 @@
1
1
  module ThreeScale
2
2
  module API
3
- VERSION = '1.2.0'.freeze
3
+ VERSION = '1.3.0'.freeze
4
4
  end
5
5
  end
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.2.0
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: 2020-11-02 00:00:00.000000000 Z
12
+ date: 2021-01-20 00:00:00.000000000 Z
13
13
  dependencies:
14
14
  - !ruby/object:Gem::Dependency
15
15
  name: bundler