SA REST API : System Architect REST API : Obtain XML based on SAXT template for an item
  
Obtain XML based on SAXT template for an item
Syntax
http://<Machine Name|IP>:<Port>/SARest/SQL/<Server Name>/<Encyclopedia Name>/<Workspace ID>/Reports/<Template Name>/<DDID>
Template Name:
The given template name is expected to match a template in the folder <SA folder>\SAXT Publisher\Templates
Obtains internal type number for the item identified by DDID.
Obtains Report file, name from the template file. The stylesheet is currently ignored.
Matches on SAClass, SAType, SAReportType first
Then on SAType, SAReportType
Then on SAClass, SAType
If a report file is found then the report is run.
Employs SARestWebService*.xsl
If there is output then it is returned.
Notes
1 You cannot use the character replacement functions such as -spa- with these parameters.
2 No metadata is generated.
Example
http://localhost:8889/SARest/SQL/MySQLServer /MyEncy/1/Reports/Enterprise%20Architecture/43303
Results
<Encyclopedia name="11-4-2-6_scratch">
   <Definitions>
      <Entity>
         <href>http://localhost:8889/SARest/SQL/MySQLServer/MyEncy/1/Definitions/Entity/43303</href>
         <Name>ent1</Name>
         <Identity>43303</Identity>
         <WorkspaceId>1</WorkspaceId>
         <Type>15</Type>
         <SAVersion>3</SAVersion>
         <WorkspaceFlags/>
         <ChangeRequest/>
         <prp__x0023__x0023_Invisible_x0023__x0023_>ent1</prp__x0023__x0023_Invisible_x0023__x0023_>
         <prp_Model>"6_Test"<Project-spa-Data-spa-Model Name="6_Test" DDID="16296" MinorType="Project Data Model" Class="3" href="http://localhost:8889/SARest/SQL/MySQLServer/MyEncy/1/Reports/Enterprise Architecture/43303//Definitions/Project-spa-Data-spa-Model/16296"/>
         </prp_Model>
         <prp_Table-spa-Name>tbl</prp_Table-spa-Name>
         <prp_Column-spa-Prefix>pre_</prp_Column-spa-Prefix>
         <prp_Volume/>
         <prp_Create-spa-Trailer/>
         <prp_Business-spa-Owner/>
         <prp_Business-spa-Description>g</prp_Business-spa-Description>
         <prp_Database-spa-Comment/>
         <prp_Purpose/>
         <prp_Comments/>
         <prp_Reference-spa-Documents/>
      </Entity>
   </Definitions>
   <Workspace Name="Root" ID="1" Baseline="0" Description="" Path="\\Root"/>
</Encyclopedia>
Example
http://localhost:8889/SARest/SQL/MySQLServer/MyEncy/1/Reports/bpmn/33240
Results
<Encyclopedia name="11-4-2-6_scratch">
   <Diagrams>
      <Business-spa-Process>
         <href>http://localhost:8889/SARest/SQL/MySQLServer/MyEncy/1/Diagrams/Business-spa-Process/33240</href>
         <Name>!t!t</Name>
         <Identity>33240</Identity>
         <WorkspaceId>1</WorkspaceId>
         <Type>142</Type>
         <SAVersion>2</SAVersion>
         <WorkspaceFlags/>
         <ChangeRequest/>
         <prp_Name>!t!t</prp_Name>
      </Business-spa-Process>
   </Diagrams>
   <Workspace Name="Root" ID="1" Baseline="0" Description="" Path="\\Root"/>
</Encyclopedia>
Parent topic
System Architect REST API