kong v0.0.1 Kong.API
Provides access to the Kong endpoints for API management.
Consult the Kong Admin API documentation for more information about the API object properties
Summary
Functions
Adds a new API to Kong with the given map attributes
Add Plugin to API
List APIs from Kong based on the given opts Keyword List
List Plugins per API
Remove API from Kong with the given string name_or_id
Remove Plugin
Retrieve an API from Kong with the given name_or_id string
Update API in Kong with the given string name_or_id with the given map attributes
Update or Add Plugin
Update Or Create API in Kong with the given map attributes
Update Plugin
Functions
Adds a new API to Kong with the given map attributes.
Returns either {:ok, result} where result is a map with the newly created API or {:error, reasons} where reasons is a map containing information.
List APIs from Kong based on the given opts Keyword List.
Keywords defined in opts are mapped to the Querystring parameters of the request to Kong.
Returns either {:ok, result} where result is the paginated result returned by Kong, or {:error, reasons} where reasons is a map containing information.
Remove API from Kong with the given string name_or_id.
Returns either {:ok, result} where result is a map with the newly created API or {:error, reasons} where reasons is a map containing information.
Retrieve an API from Kong with the given name_or_id string.
Returns either {:ok, result} where result is a map with the API or {:error, reasons} where reasons is a map containing information.
Update API in Kong with the given string name_or_id with the given map attributes.
Returns either {:ok, result} where result is a map with the updated API or {:error, reasons} where reasons is a map containing information.
Update Or Create API in Kong with the given map attributes.
Returns either {:ok, result} where result is a map with the created / updated API or {:error, reasons} where reasons is a map containing information.