Kong
Kong API wrapper for Crystal.
Work in progress.
Installation
-
Add the dependency to your
shard.yml
:dependencies: kong: github: kandayo/kong.cr
-
Run
shards install
Usage
require "kong"
Kong.configure do |config|
config.backend = "http://localhost:8081/admin/api"
end
consumer = Kong::Consumer.create(custom_id: "1", tags: ["storefront"])
consumer.id # => "4f03f5b2-1a0a-4c05-8160-f3caa8809efa"
consumer.custom_id # => "1"
consumer.tags # => ["storefont"]
Development
TODO Write development instructions here
Contributing
- Fork it (https://github.com/kandayo/kong/fork)
- Create your feature branch (
git checkout -b my-new-feature
) - Commit your changes (
git commit -am 'Add some feature'
) - Push to the branch (
git push origin my-new-feature
) - Create a new Pull Request
Contributors
- kandayo - creator and maintainer