diff --git a/README.md b/README.md index b6cc5ce..379c34f 100644 --- a/README.md +++ b/README.md @@ -102,7 +102,7 @@ Consul.HTTP.Raw.kv_put "elixir", "is awesome", cas: 23 |v1/catalog/datacenters | `:catalog_datacenters`| |v1/catalog/nodes | `:catalog_nodes`| |v1/catalog/services | `:catalog_services`| -|v1/catalog/services/#{service} | `:catalog_service`| +|v1/catalog/service/#{service} | `:catalog_service`| |v1/catalog/node/#{node_id} | `:catalog_node`| |v1/event/fire/#{name} | `:event_fire`| |v1/event/list | `:event_list`| diff --git a/docs/readme.html b/docs/readme.html index afc2330..9a47cfc 100644 --- a/docs/readme.html +++ b/docs/readme.html @@ -218,7 +218,7 @@

v1/catalog/services:catalog_services -v1/catalog/services/#{service}:catalog_service +v1/catalog/service/#{service}:catalog_service v1/catalog/node/#{node_id}:catalog_node diff --git a/lib/consul/http/raw.ex b/lib/consul/http/raw.ex index f3dcb40..38f8eb3 100644 --- a/lib/consul/http/raw.ex +++ b/lib/consul/http/raw.ex @@ -157,7 +157,7 @@ defmodule Consul.HTTP.Raw do method: :get }, %{ - path: ["v1", "catalog", "services", {:var, :service}], + path: ["v1", "catalog", "service", {:var, :service}], args: [:service], name: :catalog_service, method: :get