lib/3scale/api/client.rb in 3scale-api-0.1.5 vs lib/3scale/api/client.rb in 3scale-api-0.1.6

- old
+ new

@@ -102,9 +102,19 @@ end # @api public # @return [Hash] # @param [Fixnum] service_id Service ID + # @param [Hash] attributes Service Attributes + # @option attributes [String] :name Service Name + def update_service(service_id, attributes) + response = http_client.put("/admin/api/services/#{service_id}", body: { service: attributes }) + extract(entity: 'service', from: response) + end + + # @api public + # @return [Hash] + # @param [Fixnum] service_id Service ID def show_proxy(service_id) response = http_client.get("/admin/api/services/#{service_id}/proxy") extract(entity: 'proxy', from: response) end