Swagger.Client
In order to keep up to date, run swagger-codegen against latest Asterisk You can run the latest Asterisk version via Docker Compose using the provided docker-compose.yml file and the configs located under the asterisk folder. These configs set the default username and password to asterisk:asterisk for testing and updating specs for new versions.
swagger-codegen generate -i http://192.168.64.2:8088/ari/api-docs/resources.json -l elixir -o /tmp/test/ -a "Authorization: Basic YXN0ZXJpc2s6YXN0ZXJpc2s="
Authorization: Basic YXN0ZXJpc2s6YXN0ZXJpc2s= is asterisk:asterisk base 64 encoded. If you use your own asterisk instance then correct the command above with your URL and auth string.
Nothing in this repo is manually edited other than the supporting docker files and asterisk confs to enable swagger-codegen to do its thing, or else anything specified in .swagger-codegen-ignore
Installation
If available in Hex, the package can be installed
by adding ostip_exari to your list of dependencies in mix.exs:
def deps do
[{:ostip_exari, "~> 0.1.0"}]
endIf vendoring using git submodule:
def deps do
[{:ostip_exari, path: "./ostip_exari/swagger/client"}]
endDocumentation can be generated with ExDoc and published on HexDocs. Once published, the docs can be found at https://hexdocs.pm/swagger/client.