mirror of
https://github.com/encode/django-rest-framework.git
synced 2025-07-27 16:40:03 +03:00
Update docs
This commit is contained in:
parent
d83a978185
commit
50496b5f4d
|
@ -27,7 +27,7 @@ Here's an example of a simple URL conf, that uses `SimpleRouter`.
|
||||||
There are two mandatory arguments to the `register()` method:
|
There are two mandatory arguments to the `register()` method:
|
||||||
|
|
||||||
* `prefix` - The URL prefix to use for this set of routes.
|
* `prefix` - The URL prefix to use for this set of routes.
|
||||||
* `viewset` - The viewset class.
|
* `viewset` - The view handler: either a REST Framework `ViewSet`, REST Framework `APIView`, Django `View`, or Django view function. If you provide a class (as opposed to a Django view function), make sure to only provide the class; don't instantiate the class.
|
||||||
|
|
||||||
Optionally, you may also specify an additional argument:
|
Optionally, you may also specify an additional argument:
|
||||||
|
|
||||||
|
|
Loading…
Reference in New Issue
Block a user