Skip to content

Instantly share code, notes, and snippets.

@xcommerce-gists
Created August 28, 2013 01:56
Show Gist options
  • Save xcommerce-gists/6361293 to your computer and use it in GitHub Desktop.
Save xcommerce-gists/6361293 to your computer and use it in GitHub Desktop.
Web API XSD
<xs:schema xmlns:xs="http://www.w3.org/2001/XMLSchema">
<xs:element name="config">
<xs:complexType>
<xs:sequence>
<xs:element name="service">
<xs:complexType>
<xs:sequence>
<xs:element name="rest-route">
<xs:complexType>
<xs:simpleContent>
<xs:extension base="xs:string">
<xs:attribute type="xs:string" name="httpMethod"/>
<xs:attribute type="xs:string" name="method"/>
<xs:attribute type="xs:boolean" name="secure" default="false"/>
</xs:extension>
</xs:simpleContent>
</xs:complexType>
</xs:element>
</xs:sequence>
<xs:attribute type="xs:string" name="class"/>
<xs:attribute type="xs:string" name="baseUrl"/>
</xs:complexType>
</xs:element>
</xs:sequence>
</xs:complexType>
</xs:element>
</xs:schema>
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment