This commit is contained in:
Shankar Ambady 2017-03-09 20:40:21 +00:00 committed by GitHub
commit 65c1eee8e7

View File

@ -101,11 +101,11 @@ Here's a brief example that demonstrates:
* Making an API request using the client. * Making an API request using the client.
**index.html** **index.html**
{% load static %}
<html> <html>
<head> <head>
<script src="/static/rest_framework/js/coreapi-0.1.0.js"></script> <script src="{% static 'js/coreapi-0.1.0.js' %}"></script>
<script src="/docs/schema.js' %}"></script> <script src="{% static 'docs/js/schema.js' %}"></script>
<script> <script>
const coreapi = window.coreapi const coreapi = window.coreapi
const schema = window.schema const schema = window.schema