Output communication test (structured data)

From ePrize Developers Wiki

(Difference between revisions)
Jump to: navigation, search
(New page: API Home Page :: API Debugging <pre> Request representation: empty XML Response: &lt;?xml version="1.0" encoding="UTF-8" ?&gt; &lt;result&gt; &lt;name&gt;Ken&lt;/name&gt; &lt;...)
Line 3: Line 3:
Request representation: empty
Request representation: empty
-
XML Response:
+
XML Response (Fully Supported):
&lt;?xml version="1.0" encoding="UTF-8" ?&gt;
&lt;?xml version="1.0" encoding="UTF-8" ?&gt;
&lt;result&gt;
&lt;result&gt;
Line 13: Line 13:
&lt;/result&gt;
&lt;/result&gt;
-
JSON Response:
+
JSON Response (Coming Soon):
{
{
"result" : {
"result" : {
Line 26: Line 26:
}
}
-
YAML Response:
+
YAML Response (Coming Soon):
---
---
email: Ken Fox &lt;ken.fox@eprize.com&gt;
email: Ken Fox &lt;ken.fox@eprize.com&gt;
Line 36: Line 36:
</pre>
</pre>
-
This just verifies that the basic output system is working. It is also useful for verifying different media type support.
+
This just verifies that the basic output system is working. It will also be useful for verifying different media type support as we introduce media types other then XML.
 +
 
 +
The only fully supported media type at this time is XML.

Revision as of 16:04, 7 May 2009

API Home Page :: API Debugging

Request representation: empty

XML Response (Fully Supported):
<?xml version="1.0" encoding="UTF-8" ?>
<result>
  <name>Ken</name>
  <email>Ken Fox &lt;ken.fox@eprize.com&gt;</email>
  <favorite>http://www.eprize.com/</favorite>
  <favorite>http://code.eprize.com/wiki/</favorite>
  <id>1</id>
</result>

JSON Response (Coming Soon):
{
  "result" : {
    "email" : "Ken Fox <ken.fox@eprize.com>",
    "name" : "Ken",
    "id" : 1,
    "favorite" : [
      "http://www.eprize.com/",
      "http://code.eprize.com/wiki/"
    ]
  }
}

YAML Response (Coming Soon):
--- 
email: Ken Fox <ken.fox@eprize.com>
favorite: 
  - http://www.eprize.com/
  - http://code.eprize.com/wiki/
id: 1
name: Ken

This just verifies that the basic output system is working. It will also be useful for verifying different media type support as we introduce media types other then XML.

The only fully supported media type at this time is XML.

Personal tools