Add basic API functions and working account.auth method

This commit is contained in:
2022-09-17 12:01:14 +03:00
parent 59ec0647dc
commit d51ffa0eb2
9 changed files with 262 additions and 9 deletions

31
templates/api/index.html Normal file
View File

@@ -0,0 +1,31 @@
{% extends 'base.html' %}
{% block title %} Аккаунт | вход {% endblock %}
{% block content %}
<h1> Список методов API </h1>
{% for method in api_methods %}
<div>
<h2>{{ method }}</h2>
<details>
<summary>Описание</summary>
<div>
{{ api_methods.method.doc | safe }}
</div>
</details>
<details>
<summary>Парамеры</summary>
<div>
{% for param in api_methods.method.params %}
<div>
{{ param }}
</div>
{% endfor %}
</div>
</details>
</div>
{% endfor %}
{% endblock %}