lib/3scale/api/client.rb in 3scale-api-1.4.0 vs lib/3scale/api/client.rb in 3scale-api-1.5.0
- old
+ new
@@ -43,9 +43,17 @@
response = http_client.get('/admin/api/applications', params: params)
extract(collection: 'applications', entity: 'application', from: response)
end
# @api public
+ # @param [Fixnum] account_id Account ID
+ # @return [Array<Hash>]
+ def list_applications_by_account(account_id)
+ response = http_client.get("/admin/api/accounts/#{account_id}/applications")
+ extract(collection: 'applications', entity: 'application', from: response)
+ end
+
+ # @api public
# @return [Hash]
# @param [Fixnum] id Application ID
def show_application(id)
find_application(id: id)
end