Deprecated deprecated APIs

This commit is contained in:
Daniel Wagner-Hall 2015-12-10 14:47:14 +00:00
parent 678dbbe08a
commit 3e086909f1
4 changed files with 10 additions and 0 deletions

View file

@ -2,6 +2,11 @@
``{{endpoint.method}} {{endpoint.path}}``
{{(5 + (endpoint.path | length) + (endpoint.method | length)) * title_kind}}
{% if "deprecated" in endpoint and endpoint.deprecated -%}
.. WARNING::
This API is deprecated and will be removed from a future release.
{% endif -%}
{% if "alias_for_path" in endpoint -%}
``{{endpoint.path}}`` is an alias for `{{endpoint.alias_for_path}}`_.

View file

@ -269,6 +269,7 @@ class MatrixUnits(Units):
full_path = api.get("basePath", "").rstrip("/") + path
endpoint = {
"title": single_api.get("summary", ""),
"deprecated": single_api.get("deprecated", False),
"desc": single_api.get("description", single_api.get("summary", "")),
"method": method.upper(),
"path": full_path.strip(),