Get the XML schema of a data model
Gets the XML schema of a data model by its name.
Information noteNote: Only the Super Admin type users with
the administration role have access to this API. For more information about MDM
user types, see the related description in
Talend Administration Center User Guide.
Request |
|
Parameters |
|
Headers |
|
Response | The XML schema of the specified data model. |
Status |
|
Sample response
The following sample shows the XML schema of a data model Company with two entities Employee and Team.
<xsd:schema xmlns:xsd="http://www.w3.org/2001/XMLSchema">
<xsd:import namespace="http://www.w3.org/2001/XMLSchema"/>
<xsd:element name="Employee">
<xsd:annotation>
<xsd:appinfo source="X_Write">Company_Manager</xsd:appinfo>
<xsd:appinfo source="X_Write">Company_User</xsd:appinfo>
</xsd:annotation>
<xsd:complexType>
<xsd:all>
<xsd:element maxOccurs="1" minOccurs="1" name="Id" type="xsd:string">
<xsd:annotation>
<xsd:appinfo source="X_Write">Company_Manager</xsd:appinfo>
<xsd:appinfo source="X_Write">Company_User</xsd:appinfo>
</xsd:annotation>
</xsd:element>
<xsd:element maxOccurs="1" minOccurs="1" name="Name" type="xsd:string">
<xsd:annotation>
<xsd:appinfo source="X_Write">Company_Manager</xsd:appinfo>
<xsd:appinfo source="X_Write">Company_User</xsd:appinfo>
</xsd:annotation>
</xsd:element>
<xsd:element maxOccurs="1" minOccurs="1" name="Team" type="xsd:string">
<xsd:annotation>
<xsd:appinfo source="X_ForeignKey">Team/Id</xsd:appinfo>
<xsd:appinfo source="X_ForeignKey_NotSep">true</xsd:appinfo>
<xsd:appinfo source="X_Write">Company_Manager</xsd:appinfo>
<xsd:appinfo source="X_Write">Company_User</xsd:appinfo>
</xsd:annotation>
</xsd:element>
</xsd:all>
</xsd:complexType>
<xsd:unique name="Employee">
<xsd:selector xpath="."/>
<xsd:field xpath="Id"/>
</xsd:unique>
</xsd:element>
<xsd:element name="Team">
<xsd:annotation>
<xsd:appinfo source="X_Write">Company_Manager</xsd:appinfo>
</xsd:annotation>
<xsd:complexType>
<xsd:all>
<xsd:element maxOccurs="1" minOccurs="1" name="Id" type="xsd:string">
<xsd:annotation>
<xsd:appinfo source="X_Write">Company_Manager</xsd:appinfo>
</xsd:annotation>
</xsd:element>
<xsd:element maxOccurs="1" minOccurs="1" name="Name" type="xsd:string">
<xsd:annotation>
<xsd:appinfo source="X_Write">Company_Manager</xsd:appinfo>
</xsd:annotation>
</xsd:element>
</xsd:all>
</xsd:complexType>
<xsd:unique name="Team">
<xsd:selector xpath="."/>
<xsd:field xpath="Id"/>
</xsd:unique>
</xsd:element>
</xsd:schema>