3scale-api 0.5.0 → 0.6.0
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 +4 -4
- data/lib/3scale/api/client.rb +7 -2
- 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: 81f6650cb30804268729027455963486ade4f7009cd7067481e0aa898174edad
|
|
4
|
+
data.tar.gz: 865ca95ae08a08d6558460256abe123e895cbb0dc291f5ff2035bae2722ae251
|
|
5
5
|
SHA512:
|
|
6
|
-
metadata.gz:
|
|
7
|
-
data.tar.gz:
|
|
6
|
+
metadata.gz: 5a9e0a4b84571fab32f61f9db8e332924fdf86c219bf976fa82fef39ca3d4b82a896becd7c4f6079d3f45c400a8142f71ee94ad045d4a7ba577a7d2e26914fcf
|
|
7
|
+
data.tar.gz: c4676676ba01ef337764202ebe0da7ef824e0b573c9e05a5095600b58266c9af60f6365a3f51355f3154ed162f675bc6d55a41dd61a29581a463660da2be8fec
|
data/lib/3scale/api/client.rb
CHANGED
|
@@ -53,8 +53,13 @@ module ThreeScale
|
|
|
53
53
|
# @param [Fixnum] id Application ID
|
|
54
54
|
# @param [String] user_key Application User Key
|
|
55
55
|
# @param [String] application_id Application app_id
|
|
56
|
-
def find_application(id: nil, user_key: nil, application_id: nil)
|
|
57
|
-
params = {
|
|
56
|
+
def find_application(id: nil, user_key: nil, application_id: nil, service_id: nil)
|
|
57
|
+
params = {
|
|
58
|
+
application_id: id,
|
|
59
|
+
user_key: user_key,
|
|
60
|
+
app_id: application_id,
|
|
61
|
+
service_id: service_id,
|
|
62
|
+
}.compact
|
|
58
63
|
response = http_client.get('/admin/api/applications/find', params: params)
|
|
59
64
|
extract(entity: 'application', from: response)
|
|
60
65
|
end
|
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: 0.
|
|
4
|
+
version: 0.6.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: 2019-06-
|
|
12
|
+
date: 2019-06-27 00:00:00.000000000 Z
|
|
13
13
|
dependencies:
|
|
14
14
|
- !ruby/object:Gem::Dependency
|
|
15
15
|
name: bundler
|