{"id":21745242,"url":"https://github.com/maveonair/kongkit","last_synced_at":"2025-08-28T12:10:04.702Z","repository":{"id":56880414,"uuid":"65796506","full_name":"maveonair/kongkit","owner":"maveonair","description":"Ruby library for the Kong API","archived":false,"fork":false,"pushed_at":"2016-08-31T08:26:33.000Z","size":27,"stargazers_count":0,"open_issues_count":0,"forks_count":0,"subscribers_count":1,"default_branch":"master","last_synced_at":"2025-03-15T08:36:31.071Z","etag":null,"topics":["kong","ruby-library"],"latest_commit_sha":null,"homepage":"https://github.com/maveonair/kongkit","language":"Ruby","has_issues":true,"has_wiki":null,"has_pages":null,"mirror_url":null,"source_name":null,"license":"mit","status":null,"scm":"git","pull_requests_enabled":true,"icon_url":"https://github.com/maveonair.png","metadata":{"files":{"readme":"README.md","changelog":null,"contributing":null,"funding":null,"license":"LICENSE.md","code_of_conduct":"CODE_OF_CONDUCT.md","threat_model":null,"audit":null,"citation":null,"codeowners":null,"security":null,"support":null}},"created_at":"2016-08-16T07:13:20.000Z","updated_at":"2017-02-04T21:54:19.000Z","dependencies_parsed_at":"2022-08-20T23:10:38.141Z","dependency_job_id":null,"html_url":"https://github.com/maveonair/kongkit","commit_stats":null,"previous_names":[],"tags_count":6,"template":false,"template_full_name":null,"repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/maveonair%2Fkongkit","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/maveonair%2Fkongkit/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/maveonair%2Fkongkit/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/maveonair%2Fkongkit/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/maveonair","download_url":"https://codeload.github.com/maveonair/kongkit/tar.gz/refs/heads/master","host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":244722654,"owners_count":20499153,"icon_url":"https://github.com/github.png","version":null,"created_at":"2022-05-30T11:31:42.601Z","updated_at":"2022-07-04T15:15:14.044Z","host_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub","repositories_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories","repository_names_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repository_names","owners_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners"}},"keywords":["kong","ruby-library"],"created_at":"2024-11-26T07:14:11.987Z","updated_at":"2025-03-21T01:43:31.169Z","avatar_url":"https://github.com/maveonair.png","language":"Ruby","funding_links":[],"categories":[],"sub_categories":[],"readme":"# Kongkit\n\nRuby library for the Kong API. See [documentation](http://www.rubydoc.info/github/maveonair/kongkit) for details.\n\n## Installation\n\nAdd this line to your application's Gemfile:\n\n```ruby\ngem 'kongkit'\n```\n\nAnd then execute:\n\n    $ bundle\n\nOr install it yourself as:\n\n    $ gem install kongkit\n\n## Usage\n\n```ruby\n# List APIs (default kong url: http://localhost:8001)\napis = Kongkit.apis\n\n# Create consumer (default kong url: http://localhost:8001)\nKongkit.add_consumer(username: 'fabian')\n```\n\nor\n\n```ruby\n# Add API\nclient = Kongkit::Client.new('https://kong.enterprise.io:8001')\nclient.add_api(name: 'mockbin', request_host: 'mockbin.com', upstream_url: 'http://mockbin.com', preserve_host: true)\n\n# Add Plugin\nclient.add_plugin('mockbin', name: 'rate-limiting', 'config.minute': 20, 'config.hour': 500)\n```\n\n### Pagination\nWhen the returned resource contains a next value then the next page can be retrieved by calling the `next` method on the resource:\n\n```ruby\n# List APIs (default kong url: http://localhost:8001)\nfirst_page = Kongkit.apis(size: 5)\n\nnext_page = first_page.next\n```\n\n### Configuration\n\n```ruby\nKongkit.configure do |config|\n  config.url = 'https://kong.enterprise.io:8001'\nend\n\napis = Kongkit.apis\n```\n\n## Development\n\nAfter checking out the repo, run `bin/setup` to install dependencies. Then, run `rake test` to run the tests. You can also run `bin/console` for an interactive prompt that will allow you to experiment.\n\nTo install this gem onto your local machine, run `bundle exec rake install`. To release a new version, update the version number in `version.rb`, and then run `bundle exec rake release`, which will create a git tag for the version, push git commits and tags, and push the `.gem` file to [rubygems.org](https://rubygems.org).\n\n## Contributing\n\nBug reports and pull requests are welcome on GitHub at https://github.com/maveonair/kongkit. This project is intended to be a safe, welcoming space for collaboration, and contributors are expected to adhere to the [Contributor Covenant](http://contributor-covenant.org) code of conduct.\n\n## License\n\nThe gem is available as open source under the terms of the [MIT License](http://opensource.org/licenses/MIT).\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fmaveonair%2Fkongkit","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fmaveonair%2Fkongkit","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fmaveonair%2Fkongkit/lists"}