Skip to content
This repository has been archived by the owner on Jan 11, 2021. It is now read-only.

Commit

Permalink
simple fix in schema documentation
Browse files Browse the repository at this point in the history
  • Loading branch information
drgarcia1986 committed Oct 28, 2016
1 parent 99d65f3 commit 42f8824
Showing 1 changed file with 4 additions and 2 deletions.
6 changes: 4 additions & 2 deletions docs/schema.md
Original file line number Diff line number Diff line change
Expand Up @@ -9,7 +9,7 @@ renderers the UI (HTML/JS/CSS).
**Note:** to render the UI, both renderers must be included. The `OpenAPIRenderer` may be used on its own if you wish to host the UI independently.


### The get_swagger_view shortcut
### The `get_swagger_view` shortcut

As a convenience, a shortcut method with sensible default configurations is provided to generate SwaggerUI documentation for your API. This view features the following:

Expand Down Expand Up @@ -42,10 +42,12 @@ For more detailed documentation on the schema generator, see:

Example: Class-based view
```python
from rest_framework.permissions import Allowany
from rest_framework.permissions import AllowAny
from rest_framework.response import Response
from rest_framework.schemas import SchemaGenerator
from rest_framework.views import APIView
from rest_framework_swagger import renderers


class SwaggerSchemaView(APIView):
permission_classes = [AllowAny]
Expand Down

0 comments on commit 42f8824

Please sign in to comment.