Class: Kong::Api

Inherits:
Object
  • Object
show all
Includes:
Base
Defined in:
lib/kong/api.rb

Constant Summary collapse

ATTRIBUTE_NAMES =
%w(
  id name request_host request_path strip_request_path
  hosts uris strip_uri preserve_host upstream_url retries
  upstream_connect_timeout upstream_send_timeout upstream_read_timeout
  https_only http_if_terminated methods
).freeze
API_END_POINT =
'/apis/'.freeze

Instance Attribute Summary

Attributes included from Base

#api_end_point, #attributes

Instance Method Summary collapse

Methods included from Base

#client, #create, #create_or_update, #delete, #get, included, #initialize, #method_missing, #new?, #respond_to?, #save, #update

Dynamic Method Handling

This class handles dynamic methods through the method_missing method in the class Kong::Base

Instance Method Details

#pluginsArray<Kong::Plugin>

Returns:



15
16
17
# File 'lib/kong/api.rb', line 15

def plugins
  Plugin.list({ api_id: self.id })
end