From 52a04af3bf8930e4f63aa673a30083761543aaf6 Mon Sep 17 00:00:00 2001 From: Sean Dague Date: Mon, 14 Dec 2015 12:39:47 -0500 Subject: [PATCH] remove archaic references to XML in api Found another odd reference to XML in the api while grepping around. This should just be removed, it's only confusing to people. Change-Id: I7c4d9dc69fb386d937197ef466a6e96495dd8045 --- doc/source/addmethod.openstackapi.rst | 6 +----- 1 file changed, 1 insertion(+), 5 deletions(-) diff --git a/doc/source/addmethod.openstackapi.rst b/doc/source/addmethod.openstackapi.rst index fe6b77c87541..b1e1b57c6c6d 100644 --- a/doc/source/addmethod.openstackapi.rst +++ b/doc/source/addmethod.openstackapi.rst @@ -42,11 +42,7 @@ Action methods take parameters that are sucked out of the URL by mapper.connect( Serialization ------------- -Actions return a dictionary, and wsgi.Controller serializes that to JSON or XML based on the request's content-type. - -If you define a new controller, you'll need to define a ``_serialization_metadata`` attribute on the class, to tell wsgi.Controller how to convert your dictionary to XML. It needs to know the singular form of any list tag (e.g. ```` list contains ```` tags) and which dictionary keys are to be XML attributes as opposed to subtags (e.g. ```` instead of ``4``). - -See `nova/api/openstack/compute/servers.py` for an example. +Actions return a dictionary, and wsgi.Controller serializes that to JSON. Faults ------