kong.cr

[WIP] Kong API wrapper for Crystal

Kong

Built with Crystal 1.1.1 GitHub release Unit Tests

Kong API wrapper for Crystal.

Work in progress.

Installation

  1. Add the dependency to your shard.yml:

    dependencies:
      kong:
        github: kandayo/kong.cr
    
  2. 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

  1. Fork it (https://github.com/kandayo/kong/fork)
  2. Create your feature branch (git checkout -b my-new-feature)
  3. Commit your changes (git commit -am 'Add some feature')
  4. Push to the branch (git push origin my-new-feature)
  5. Create a new Pull Request

Contributors

Repository

kong.cr

Owner
Statistic
  • 0
  • 0
  • 0
  • 0
  • 2
  • over 2 years ago
  • August 22, 2021
License

MIT License

Links
Synced at

Thu, 16 May 2024 19:07:06 GMT

Languages