Module: RubyKong
- Defined in:
- lib/ruby-kong/api.rb,
lib/ruby-kong/kong.rb,
lib/ruby-kong/node.rb,
lib/ruby-kong/spec.rb,
lib/ruby-kong/stub.rb,
lib/ruby-kong/utils.rb,
lib/ruby-kong/plugin.rb,
lib/ruby-kong/request.rb,
lib/ruby-kong/version.rb,
lib/ruby-kong/consumer.rb,
lib/ruby-kong/request/api.rb,
lib/ruby-kong/request/node.rb,
lib/ruby-kong/request/plugin.rb,
lib/ruby-kong/request/consumer.rb
Defined Under Namespace
Modules: Api, Consumer, Node, Plugin, Request, Stub, Utils
Constant Summary collapse
- VERSION =
'0.1.1'.freeze
Class Attribute Summary collapse
-
.url ⇒ Object
Returns the value of attribute url.
Class Method Summary collapse
Class Attribute Details
.url ⇒ Object
Returns the value of attribute url.
3 4 5 |
# File 'lib/ruby-kong/spec.rb', line 3 def url @url end |
Class Method Details
.mockurl ⇒ Object
38 39 40 |
# File 'lib/ruby-kong/spec.rb', line 38 def mockurl @mockurl = 'http://mockdomain:8001' end |
.new(kong_url = 'http://123.31.11.81:8001') ⇒ Object
3 4 5 |
# File 'lib/ruby-kong/kong.rb', line 3 def new(kong_url = 'http://123.31.11.81:8001') RubyKong.url = kong_url end |
.paths ⇒ Object
5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26 27 28 29 30 31 32 33 34 35 36 |
# File 'lib/ruby-kong/spec.rb', line 5 def paths { :node => { :info => '/', :status => '/status' }, :api => { :create => '/apis', :list => '/apis', :retrieve => '/apis/', :update => '/apis/', :delete => '/apis/' }, :consumer => { :create => '/consumers', :list => '/consumers', :retrieve => '/consumers/', :update => '/consumers/', :delete => '/consumers/' }, :plugin => { :create => '/apis/:api_id/plugins', :list => '/plugins', :list_by_api => '/apis/:api_id/plugins', :retrieve => '/plugins/:plugin_id', :retrieve_enabled => '/plugins/enabled', :retrieve_schema => '/plugins/schema/:plugin_name', :update => '/apis/:api_id/plugins/:plugin_id', :delete => '/apis/:api_id/plugins/:plugin_id' } } end |