Skip to content

Instantly share code, notes, and snippets.

@subnetmarco
Created November 17, 2011 03:12
Show Gist options
  • Save subnetmarco/1372263 to your computer and use it in GitHub Desktop.
Save subnetmarco/1372263 to your computer and use it in GitHub Desktop.
<?xml version="1.0" encoding="UTF-8"?>
<api xmlns="http://mashape.com"
xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance"
xsi:schemaLocation="http://mashape.com http://mashape.com/schema/mashape-api-3.0.xsd">
<method name="Get User" http="GET">
<url><![CDATA[/users/{id}]]></url>
<parameters>
<parameter optional="false">id</parameter>
</parameters>
<result object="User"/>
</method>
<object name="User">
<field>username</field>
<field>email</field>
<field object="Address" optional="true">address</field>
</object>
<object name="Address">
<field>street</field>
<field>city</field>
<field optional="true">zipcode</field>
</object>
</api>
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment