Skip to content

Commit

Permalink
Fix docstring urls for the API categories at consul.io
Browse files Browse the repository at this point in the history
  • Loading branch information
johnpfeiffer committed Sep 9, 2016
1 parent 81e5b74 commit 1871d96
Show file tree
Hide file tree
Showing 2 changed files with 11 additions and 11 deletions.
18 changes: 9 additions & 9 deletions consulate/__init__.py
Original file line number Diff line number Diff line change
Expand Up @@ -85,7 +85,7 @@ def __init__(self,
@property
def acl(self):
"""Access the Consul
`ACL <https://www.consul.io/docs/agent/http.html#acl>`_ API
`ACL <https://www.consul.io/docs/agent/http/acl.html>`_ API
:rtype: :py:class:`consulate.api.acl.ACL`
Expand All @@ -95,7 +95,7 @@ def acl(self):
@property
def agent(self):
"""Access the Consul
`Agent <https://www.consul.io/docs/agent/http.html#agent>`_ API
`Agent <https://www.consul.io/docs/agent/http/agent.html>`_ API
:rtype: :py:class:`consulate.api.agent.Agent`
Expand All @@ -105,7 +105,7 @@ def agent(self):
@property
def catalog(self):
"""Access the Consul
`Catalog <https://www.consul.io/docs/agent/http.html#catalog>`_ API
`Catalog <https://www.consul.io/docs/agent/http/catalog.html>`_ API
:rtype: :py:class:`consulate.api.catalog.Catalog`
Expand All @@ -115,7 +115,7 @@ def catalog(self):
@property
def event(self):
"""Access the Consul
`Events <https://www.consul.io/docs/agent/http.html#events>`_ API
`Events <https://www.consul.io/docs/agent/http/event.html>`_ API
:rtype: :py:class:`consulate.api.event.Event`
Expand All @@ -125,7 +125,7 @@ def event(self):
@property
def health(self):
"""Access the Consul
`Health <https://www.consul.io/docs/agent/http.html#health>`_ API
`Health <https://www.consul.io/docs/agent/http/health.html>`_ API
:rtype: :py:class:`consulate.api.health.Health`
Expand All @@ -135,7 +135,7 @@ def health(self):
@property
def kv(self):
"""Access the Consul
`KV <https://www.consul.io/docs/agent/http.html#kv>`_ API
`KV <https://www.consul.io/docs/agent/http/kv.html>`_ API
:rtype: :py:class:`consulate.api.kv.KV`
Expand All @@ -145,7 +145,7 @@ def kv(self):
@property
def lock(self):
"""Wrapper for easy :class:`~consulate.api.kv.KV` locks.
`Semaphore <https://www.consul.io/docs/guides/semaphore.html>` _Guide
Example:
.. code:: python
Expand All @@ -165,7 +165,7 @@ def lock(self):
@property
def session(self):
"""Access the Consul
`Session <https://www.consul.io/docs/agent/http.html#session>`_ API
`Session <https://www.consul.io/docs/agent/http/session.html>`_ API
:rtype: :py:class:`consulate.api.session.Session`
Expand All @@ -175,7 +175,7 @@ def session(self):
@property
def status(self):
"""Access the Consul
`Status <https://www.consul.io/docs/agent/http.html#status>`_ API
`Status <https://www.consul.io/docs/agent/http/status.html>`_ API
:rtype: :py:class:`consulate.api.status.Status`
Expand Down
4 changes: 2 additions & 2 deletions consulate/api/acl.py
Original file line number Diff line number Diff line change
Expand Up @@ -29,8 +29,8 @@ def create(self, name, acl_type='client', rules=None):
the create endpoint.
``rules`` is a HCL string defining the rule policy. See
`https://consul.io/docs/internals/acl.html`_ for more information on
defining rules.
`Internals on <https://www.consul.io/docs/internals/acl.html>`_ ACL
for more information on defining rules.
The call to create will return the ID of the new ACL.
Expand Down

0 comments on commit 1871d96

Please sign in to comment.