Deprecated deprecated APIs
This commit is contained in:
parent
678dbbe08a
commit
3e086909f1
4 changed files with 10 additions and 0 deletions
|
@ -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}}`_.
|
||||
|
||||
|
|
|
@ -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(),
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue