Output communication test (structured data)

From ePrize Developers Wiki

(Difference between revisions)
Jump to: navigation, search

Ken-fox (Talk | contribs)
(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;...)
Next diff →

Revision as of 01:57, 28 March 2009

API Home Page :: API Debugging

Request representation: empty

XML Response:
<?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:
{
  "result" : {
    "email" : "Ken Fox <ken.fox@eprize.com>",
    "name" : "Ken",
    "id" : 1,
    "favorite" : [
      "http://www.eprize.com/",
      "http://code.eprize.com/wiki/"
    ]
  }
}

YAML Response:
--- 
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 is also useful for verifying different media type support.

Personal tools