Foreign Keys API
Go Up to API Reference
This part of the Team Server API allows you to work with foreign keys.
Contents
GET v1/foreignkeys
Obtains a list of relationships.
If successful, the response from the server provides a list of relationships with details about each one of them.
GET v1/models/<model id>/foreignkeys
Obtains a list of relationships of the model with the specified ID.
If successful, the response from the server provides a list of relationships with details about each one of them.
GET v1/foreignkeys/<id>
Obtains information about the relationship with the specified ID.
Foreign Keys Fields
Foreign Keys resources may provide the following fields:
Item | Example | Description |
---|---|---|
|
|
An integer that uniquely identifies the relationship. |
|
|
The business name of the relationship. |
|
|
The constraint name of the relationship. |
|
|
A description of the relationship. |
|
|
The type of the relationship. |
|
|
The existence of the relationship. |
|
|
The cardinality of the relationship. |
|
|
The verb phrase for the relationship. |
|
|
The inverse verb phrase for the relationship. |
|
|
Set to "True" if the relationship is set to Logical Only. |
|
|
Set to "True" if the relationship is set to Physical Only. |
|
|
Indicates the type of model containing the relationship. |
|
|
Some notes about the relationship. |
|
|
Path relative to the Team Server root API URL that points to the entry of the relationship resource. For example, if the Team Server root API URL is http://teamserver.example.com/api , the example value here determines that you can access the relationship resource at http://teamserver.example.com/api/v1/entities/76 . |
|
|
Path relative to the Team Server root URL that points to the page of the relationship. For example, if the Team Server root URL is http://teamserver.example.com , the example value here determines that you can access the page of the relationship at http://teamserver.example.com/object/view.spg?key=76 . |
|
|
The date when the relationship was created, in Unix time (seconds since 1970). |
|
|
The ID of the diagram containing the relationship. See |
|
|
The name of the diagram containing the relationship. See |
|
|
API path of the diagram containing the relationship. See |
|
|
Relative URL of the diagram containing the relationship. See |
|
|
The ID of the model containing the relationship. See |
|
|
The name of the model containing the relationship. See |
|
|
API path of the model containing the relationship. See |
|
|
Relative URL of the model containing the relationship. See |
|
|
The ID of the entity or table that is the parent of the relationship. See |
|
|
The ID of the entity or table that is the child of the relationship. See |
|
|
The logical name of the parent table of the relationship. See |
|
|
The logical name of the child table of the relationship. See |
|
|
The physical name of the parent table of the relationship. See |
|
|
The physical name of the child table of the relationship. See |
|
|
API path of the entity or table that is the parent of the relationship. See |
|
|
API path of the entity or table that is the child of the relationship. See |
|
|
Relative URL of the entity or table that is the parent of the relationship. See |
|
|
Relative URL of the entity or table that is the child of the relationship. See |
|
|
A list of attachments of the relationship. Each entry provides the following fields:
See the Attachment API for more information. |
|
|
A list of security properties of the relationship. Each entry provides the following fields:
See the Security Property API for more information. |
|
|
A list of models that are children of the relationship. Each entry provides the following fields:
See the Model API for more information. |
|
|
A list of alerts that affect the relationship. Each entry provides the following fields:
See the Alert API for more information. |
|
|
The type of the resource. Its value is always "Foreign Key" for relationship resources. |