mirror of
https://github.com/TandoorRecipes/recipes.git
synced 2026-01-01 04:10:06 -05:00
api documentation basics
This commit is contained in:
16
cookbook/templates/api_info.html
Normal file
16
cookbook/templates/api_info.html
Normal file
@@ -0,0 +1,16 @@
|
||||
{% extends "base.html" %}
|
||||
{% load static %}
|
||||
{% load i18n %}
|
||||
|
||||
{% block title %}{% trans "API Documentation" %}{% endblock %}
|
||||
|
||||
{% block extra_head %}
|
||||
|
||||
{% endblock %}
|
||||
|
||||
{% block content_fluid %}
|
||||
|
||||
<redoc spec-url='{% url 'openapi-schema' %}'></redoc>
|
||||
<script src="{% static 'js/redoc.standalone.js' %}"></script>
|
||||
|
||||
{% endblock %}
|
||||
@@ -139,6 +139,9 @@
|
||||
<div class="dropdown-divider"></div>
|
||||
<a class="dropdown-item" href="{% url 'docs_markdown' %}"><i
|
||||
class="fab fa-markdown fa-fw"></i> {% trans 'Markdown Help' %}</a>
|
||||
<a class="dropdown-item" href="{% url 'docs_api' %}"><i
|
||||
class="fas fa-terminal fa-fw"></i> {% trans 'API Documentation' %}</a>
|
||||
|
||||
<a class="dropdown-item" href="https://github.com/vabene1111/recipes"><i
|
||||
class="fab fa-github fa-fw"></i> {% trans 'GitHub' %}</a>
|
||||
<div class="dropdown-divider"></div>
|
||||
@@ -175,6 +178,11 @@
|
||||
{% endblock %}
|
||||
</div>
|
||||
|
||||
<div class="container-fluid">
|
||||
{% block content_fluid %}
|
||||
{% endblock %}
|
||||
</div>
|
||||
|
||||
{% block script %}
|
||||
{% endblock script %}
|
||||
|
||||
|
||||
Reference in New Issue
Block a user