@@ -78,18 +78,6 @@ Requires the `pyyaml` package to be installed.
...
@@ -78,18 +78,6 @@ Requires the `pyyaml` package to be installed.
**.media_type**:`application/yaml`
**.media_type**:`application/yaml`
## XMLParser
Parses REST framework's default style of `XML` request content.
Note that the `XML` markup language is typically used as the base language for more strictly defined domain-specific languages, such as `RSS`, `Atom`, and `XHTML`.
If you are considering using `XML` for your API, you may want to consider implementing a custom renderer and parser for your specific requirements, and using an existing domain-specific media-type, or creating your own custom XML-based media-type.
Requires the `defusedxml` package to be installed.
**.media_type**:`application/xml`
## FormParser
## FormParser
Parses HTML form content. `request.data` will be populated with a `QueryDict` of data.
Parses HTML form content. `request.data` will be populated with a `QueryDict` of data.
...
@@ -161,7 +149,7 @@ By default this will include the following keys: `view`, `request`, `args`, `kwa
...
@@ -161,7 +149,7 @@ By default this will include the following keys: `view`, `request`, `args`, `kwa
## Example
## Example
The following is an example plaintext parser that will populate the `request.data` property with a string representing the body of the request.
The following is an example plaintext parser that will populate the `request.data` property with a string representing the body of the request.
@@ -145,20 +145,6 @@ Note that non-ascii characters will not be character escaped. For example:
...
@@ -145,20 +145,6 @@ Note that non-ascii characters will not be character escaped. For example:
**.charset**: `utf-8`
**.charset**: `utf-8`
## XMLRenderer
Renders REST framework's default style of `XML` response content.
Note that the `XML` markup language is used typically used as the base language for more strictly defined domain-specific languages, such as `RSS`, `Atom`, and `XHTML`.
If you are considering using `XML` for your API, you may want to consider implementing a custom renderer and parser for your specific requirements, and using an existing domain-specific media-type, or creating your own custom XML-based media-type.
**.media_type**: `application/xml`
**.format**: `'.xml'`
**.charset**: `utf-8`
## TemplateHTMLRenderer
## TemplateHTMLRenderer
Renders data to HTML, using Django's standard template rendering.
Renders data to HTML, using Django's standard template rendering.