mirror of
https://github.com/encode/django-rest-framework.git
synced 2024-11-22 17:47:04 +03:00
Add 2.x notes and links
This commit is contained in:
parent
a741418f50
commit
8e549a76ea
|
@ -1,5 +1,11 @@
|
||||||
source: fields.py
|
source: fields.py
|
||||||
|
|
||||||
|
---
|
||||||
|
|
||||||
|
**Note**: This is the documentation for the **version 3.0** of REST framework. Documentation for [version 2.4](http://tomchristie.github.io/rest-framework-2-docs/) is also available.
|
||||||
|
|
||||||
|
---
|
||||||
|
|
||||||
# Serializer fields
|
# Serializer fields
|
||||||
|
|
||||||
> Each field in a Form class is responsible not only for validating data, but also for "cleaning" it — normalizing it to a consistent format.
|
> Each field in a Form class is responsible not only for validating data, but also for "cleaning" it — normalizing it to a consistent format.
|
||||||
|
|
|
@ -1,6 +1,12 @@
|
||||||
source: mixins.py
|
source: mixins.py
|
||||||
generics.py
|
generics.py
|
||||||
|
|
||||||
|
---
|
||||||
|
|
||||||
|
**Note**: This is the documentation for the **version 3.0** of REST framework. Documentation for [version 2.4](http://tomchristie.github.io/rest-framework-2-docs/) is also available.
|
||||||
|
|
||||||
|
---
|
||||||
|
|
||||||
# Generic views
|
# Generic views
|
||||||
|
|
||||||
> Django’s generic views... were developed as a shortcut for common usage patterns... They take certain common idioms and patterns found in view development and abstract them so that you can quickly write common views of data without having to repeat yourself.
|
> Django’s generic views... were developed as a shortcut for common usage patterns... They take certain common idioms and patterns found in view development and abstract them so that you can quickly write common views of data without having to repeat yourself.
|
||||||
|
|
|
@ -1,5 +1,11 @@
|
||||||
<a class="github" href="metadata.py"></a>
|
<a class="github" href="metadata.py"></a>
|
||||||
|
|
||||||
|
---
|
||||||
|
|
||||||
|
**Note**: This is the documentation for the **version 3.0** of REST framework. Documentation for [version 2.4](http://tomchristie.github.io/rest-framework-2-docs/) is also available.
|
||||||
|
|
||||||
|
---
|
||||||
|
|
||||||
# Metadata
|
# Metadata
|
||||||
|
|
||||||
> [The `OPTIONS`] method allows a client to determine the options and/or requirements associated with a resource, or the capabilities of a server, without implying a resource action or initiating a resource retrieval.
|
> [The `OPTIONS`] method allows a client to determine the options and/or requirements associated with a resource, or the capabilities of a server, without implying a resource action or initiating a resource retrieval.
|
||||||
|
|
|
@ -1,5 +1,11 @@
|
||||||
source: relations.py
|
source: relations.py
|
||||||
|
|
||||||
|
---
|
||||||
|
|
||||||
|
**Note**: This is the documentation for the **version 3.0** of REST framework. Documentation for [version 2.4](http://tomchristie.github.io/rest-framework-2-docs/) is also available.
|
||||||
|
|
||||||
|
---
|
||||||
|
|
||||||
# Serializer relations
|
# Serializer relations
|
||||||
|
|
||||||
> Bad programmers worry about the code.
|
> Bad programmers worry about the code.
|
||||||
|
|
|
@ -1,5 +1,11 @@
|
||||||
source: request.py
|
source: request.py
|
||||||
|
|
||||||
|
---
|
||||||
|
|
||||||
|
**Note**: This is the documentation for the **version 3.0** of REST framework. Documentation for [version 2.4](http://tomchristie.github.io/rest-framework-2-docs/) is also available.
|
||||||
|
|
||||||
|
---
|
||||||
|
|
||||||
# Requests
|
# Requests
|
||||||
|
|
||||||
> If you're doing REST-based web service stuff ... you should ignore request.POST.
|
> If you're doing REST-based web service stuff ... you should ignore request.POST.
|
||||||
|
|
|
@ -1,5 +1,11 @@
|
||||||
source: serializers.py
|
source: serializers.py
|
||||||
|
|
||||||
|
---
|
||||||
|
|
||||||
|
**Note**: This is the documentation for the **version 3.0** of REST framework. Documentation for [version 2.4](http://tomchristie.github.io/rest-framework-2-docs/) is also available.
|
||||||
|
|
||||||
|
---
|
||||||
|
|
||||||
# Serializers
|
# Serializers
|
||||||
|
|
||||||
> Expanding the usefulness of the serializers is something that we would
|
> Expanding the usefulness of the serializers is something that we would
|
||||||
|
|
|
@ -1,5 +1,11 @@
|
||||||
<a class="github" href="validators.py"></a>
|
<a class="github" href="validators.py"></a>
|
||||||
|
|
||||||
|
---
|
||||||
|
|
||||||
|
**Note**: This is the documentation for the **version 3.0** of REST framework. Documentation for [version 2.4](http://tomchristie.github.io/rest-framework-2-docs/) is also available.
|
||||||
|
|
||||||
|
---
|
||||||
|
|
||||||
# Validators
|
# Validators
|
||||||
|
|
||||||
> Validators can be useful for re-using validation logic between different types of fields.
|
> Validators can be useful for re-using validation logic between different types of fields.
|
||||||
|
|
|
@ -9,7 +9,7 @@
|
||||||
|
|
||||||
---
|
---
|
||||||
|
|
||||||
**Note**: The incoming 3.0 version has now been merged to the `master` branch on GitHub. For the source of the currently available PyPI version, please see the `2.4.4` tag.
|
**Note**: This is the documentation for the **version 3.0** of REST framework. Documentation for [version 2.4](http://tomchristie.github.io/rest-framework-2-docs/) is also available.
|
||||||
|
|
||||||
---
|
---
|
||||||
|
|
||||||
|
|
Loading…
Reference in New Issue
Block a user