Publisher and Web Interface > Web Interface > Web Interface REST service > Requesting resources through the REST service > Requesting the content of a text diagram, table or matrix (Web Interface REST service)
  
Requesting the content of a text diagram, table or matrix (Web Interface REST service)
The TextDiagram requests can be run against a Text Diagram, Table or Matrix:
For a Text Diagram, the TextDiagram requests returns the content of the Text Diagram.
For a Table or Matrix, the TextDiagram requests returns an HTML table for the Table or Matrix.
* 
Tables and Matrices, such as a SysML Requirement Table, are stored in a Model through a Text Diagram.
Use the Diagram request to return an image of a UPDM Timeline Diagram (PV-2 Project Timelines/AcV-2 Programme Timelines/NPV-2 Programme Timelines).
Request
The syntax of the URI for the TextDiagram request is as follows.
<Web Interface website>/ModelerService/Servers/<server name>/Repositories/<repository name>/Models/<model name>/ModelVersions/<version/Item/<item id>/TextDiagram
Where:
<Web Interface website> - is the URI for the Web Interface website.
<server name> - is the name of the server.
If the server name contains reserved characters, those characters must be percent encoded in the URI. Use the Servers operation request to return the URI safe version of the server name.
<repository name> - is the name of the database.
If the database name contains reserved characters, those characters must be percent encoded in the URI. Use the Repositories operation request to return the URI safe version of the database name.
<model name> - is the name of the model.
If the model name contains reserved characters, those characters must be percent encoded in the URI. Use the Models operation request to return the URI safe version of the model name.
* 
The REST service cannot work with Models that have the percentage character (%) in their names.
<version> - is the version number of the model, as it appears in Model Explorer.
<item id> - is the id of the Modeler Text Diagram, against which the TextDiagram operation is being run.
You can find out the ids of items through operation requests such as ChildItems operation request.
Returned XML
A TextDiagram request returns the content of a Text Diagram, or an HTML table for a Table or Matrix.
Example
In this example, the following TextDiagram request returns an HTML table for a SysML Requirement Table (the item id of SysML Requirement Table is e475d03c-9ed2-45b8-b943-e08d3892651b).
https://localhost:57850/ModelerService/Servers/Server101/Repository/Example1/Models/Model1/ModelVersions/0/Item/e475d03c-9ed2-45b8-b943-e08d3892651b/TextDiagram