Skip to content

Commit

Permalink
Update coreapi JS to 0.1.1 (encode#5479)
Browse files Browse the repository at this point in the history
  • Loading branch information
Carlton Gibson authored Oct 5, 2017
1 parent 161dc2d commit d8da6bb
Show file tree
Hide file tree
Showing 4 changed files with 9 additions and 6 deletions.
4 changes: 2 additions & 2 deletions docs/topics/api-clients.md
Original file line number Diff line number Diff line change
Expand Up @@ -392,11 +392,11 @@ Once the API documentation URLs are installed, you'll be able to include both th
<!--
Load the CoreAPI library and the API schema.

/static/rest_framework/js/coreapi-0.1.0.js
/static/rest_framework/js/coreapi-0.1.1.js
/docs/schema.js
-->
{% load staticfiles %}
<script src="{% static 'rest_framework/js/coreapi-0.1.0.js' %}"></script>
<script src="{% static 'rest_framework/js/coreapi-0.1.1.js' %}"></script>
<script src="{% url 'api-docs:schema-js' %}"></script>

The `coreapi` library, and the `schema` object will now both be available on the `window` instance.
Expand Down

Large diffs are not rendered by default.

2 changes: 1 addition & 1 deletion rest_framework/templates/rest_framework/docs/index.html
Original file line number Diff line number Diff line change
Expand Up @@ -17,7 +17,7 @@
<link href="{% static 'rest_framework/docs/img/favicon.ico' %}" rel="shortcut icon">

{% if code_style %}<style>{{ code_style }}</style>{% endif %}
<script src="{% static 'rest_framework/js/coreapi-0.1.0.js' %}"></script>
<script src="{% static 'rest_framework/js/coreapi-0.1.1.js' %}"></script>
<script src="{% url 'api-docs:schema-js' %}"></script>

</head>
Expand Down
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
{% load rest_framework %}
{% load staticfiles %}
<pre class="highlight javascript hide" data-language="javascript"><code>{% code html %}<!-- Load the JavaScript client library -->
<script src="{% static 'rest_framework/js/coreapi-0.1.0.js' %}"></script>
<script src="{% static 'rest_framework/js/coreapi-0.1.1.js' %}"></script>
<script src="{% url 'api-docs:schema-js' %}"></script>{% endcode %}</code></pre>

0 comments on commit d8da6bb

Please sign in to comment.