新增:打包编译功能
This commit is contained in:
6
backend/templates/rest_framework/docs/langs/shell.html
Normal file
6
backend/templates/rest_framework/docs/langs/shell.html
Normal file
@@ -0,0 +1,6 @@
|
||||
{% load rest_framework %}
|
||||
<pre class="highlight shell hide" data-language="shell"><code>{% code bash %}# Load the schema document
|
||||
$ coreapi get {{ document.url }}{% if schema_format %} --format {{ schema_format }}{% endif %}
|
||||
|
||||
# Interact with the API endpoint
|
||||
$ coreapi action {% if section_key %}{{ section_key }} {% endif %}{{ link_key|cut:"> " }}{% for field in link.fields %} -p {{ field.name }}=...{% endfor %}{% endcode %}</code></pre>
|
||||
Reference in New Issue
Block a user