Get linked relations
GET {{url}}/apis/{{apiId}}/versions/{{apiVersionId}}/relations
This call fetches all the relations which are linked in the specified API Version along with their details.
The response will contain a relations
object which would contain all the relation types which are linked to the apiversion. Each of the relation type will be an object which would contain details about the relations of this type.
Requires API Key as
X-Api-Key
request header orapikey
URL query parameter.
HEADERS
Key | Datatype | Required | Description |
---|---|---|---|
x-api-key | string |
RESPONSES
status: OK
{"relations":{"contracttest":{"2a9b8fa8-88b7-4b86-8372-8e3f6f6e07f2":{"id":"2a9b8fa8-88b7-4b86-8372-8e3f6f6e07f2","name":"C test","updatedAt":"2019-08-29T10:18:11.000Z"}},"integrationtest":{"521b0486-ab91-4d3a-9189-43c9380a0533":{"id":"521b0486-ab91-4d3a-9189-43c9380a0533","name":"C1","updatedAt":"2019-08-29T11:40:39.000Z"},"a236b715-e682-460b-97b6-c1db24f7612e":{"id":"a236b715-e682-460b-97b6-c1db24f7612e","name":"C test","updatedAt":"2019-08-29T10:18:11.000Z"}},"mock":{"4ccd755f-2c80-481b-a262-49b55e12f5e1":{"id":"4ccd755f-2c80-481b-a262-49b55e12f5e1","name":"Mock","url":"https://4ccd755f-2c80-481b-a262-49b55e12f5e1.mock-beta.pstmn.io","updatedAt":"2019-08-20T10:18:13.000Z"}}}}