Skip to content
Projects
Groups
Snippets
Help
This project
Loading...
Sign in / Register
Toggle navigation
D
django-rest-framework
Overview
Overview
Details
Activity
Cycle Analytics
Repository
Repository
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Charts
Issues
0
Issues
0
List
Board
Labels
Milestones
Merge Requests
0
Merge Requests
0
CI / CD
CI / CD
Pipelines
Jobs
Schedules
Charts
Wiki
Wiki
Snippets
Snippets
Members
Members
Collapse sidebar
Close sidebar
Activity
Graph
Charts
Create a new issue
Jobs
Commits
Issue Boards
Open sidebar
edx
django-rest-framework
Commits
3a4ca88a
Commit
3a4ca88a
authored
Dec 11, 2011
by
Tom Christie
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
Add OPTIONS to auto-documenting API
parent
e2f3153b
Show whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
8 additions
and
0 deletions
+8
-0
djangorestframework/templates/renderer.html
+8
-0
No files found.
djangorestframework/templates/renderer.html
View file @
3a4ca88a
...
@@ -35,6 +35,14 @@
...
@@ -35,6 +35,14 @@
<div
id=
"content"
class=
"{% block coltype %}colM{% endblock %}"
>
<div
id=
"content"
class=
"{% block coltype %}colM{% endblock %}"
>
{% if 'OPTIONS' in view.allowed_methods %}
<form
action=
"{{ request.get_full_path }}"
method=
"post"
>
{% csrf_token %}
<input
type=
"hidden"
name=
"{{ METHOD_PARAM }}"
value=
"OPTIONS"
/>
<input
type=
"submit"
value=
"OPTIONS"
class=
"default"
/>
</form>
{% endif %}
<div
class=
'content-main'
>
<div
class=
'content-main'
>
<h1>
{{ name }}
</h1>
<h1>
{{ name }}
</h1>
<p>
{% if markeddown %}{% autoescape off %}{{ markeddown }}{% endautoescape %}{% else %}{{ description|linebreaksbr }}{% endif %}
</p>
<p>
{% if markeddown %}{% autoescape off %}{{ markeddown }}{% endautoescape %}{% else %}{{ description|linebreaksbr }}{% endif %}
</p>
...
...
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment