mirror of
https://github.com/encode/django-rest-framework.git
synced 2025-08-05 13:00:12 +03:00
documentation update
This commit is contained in:
parent
34992294ad
commit
21b1c618bf
|
@ -145,6 +145,18 @@ May be used to pass a canonical URL for the schema.
|
|||
url='https://www.example.org/api/'
|
||||
)
|
||||
|
||||
#### `urlconf`
|
||||
|
||||
May be used to pass a nondefault url configuration
|
||||
useful for `Django multihost snippet`
|
||||
https://code.djangoproject.com/wiki/MultiHostMiddleware
|
||||
|
||||
schema_view = get_schema_view(
|
||||
title='Server Monitoring API',
|
||||
url='https://www.example.org/api/',
|
||||
urlconf='myproject.urls'
|
||||
)
|
||||
|
||||
#### `renderer_classes`
|
||||
|
||||
May be used to pass the set of renderer classes that can be used to render the API root endpoint.
|
||||
|
|
Loading…
Reference in New Issue
Block a user