jan-h
4/13/2017 - 1:59 PM

Example SDL Web 8.1 Content service request and response to resolve a dynamic component link; see https://tridion.stackexchange.com/a/16927/

Example SDL Web 8.1 Content service request and response to resolve a dynamic component link; see https://tridion.stackexchange.com/a/16927/88

// response with relative URLs, OverrideDiscoveryService=true
{
  "@odata.context": "http://cd-server:8081/client/v4/content.svc/$metadata#Links/$entity",
  "@odata.id": "Links('944d65ab-bcb4-483e-b9f0-c9181b713c9b')",
  "LinkUUID": "944d65ab-bcb4-483e-b9f0-c9181b713c9b",
  "Url": "/nl/news/article.html",
  "Anchor": null,
  "Parameters": null,
  "TargetURI": "tcm:29-2521-64",
  "Text": "",
  "Attributes": null,
  "TextOnFail": false
}
// response with absolute URLs, this is the default configuration, OverrideDiscoveryService=false
{
  "@odata.context": "http://cd-server:8081/client/v4/content.svc/$metadata#Links/$entity",
  "@odata.id": "Links('944d65ab-bcb4-483e-b9f0-c9181b713c9b')",
  "LinkUUID": "944d65ab-bcb4-483e-b9f0-c9181b713c9b",
  "Url": "http://example.com/nl/news/article.html",
  "Anchor": null,
  "Parameters": null,
  "TargetURI": "tcm:29-2521-64",
  "Text": "",
  "Attributes": null,
  "TextOnFail": false
}
http://cd-server:8081/client/v4/content.svc/GetComponentLinkFunctionImport(PublicationId=29,SourcePageId=-1,TargetComponentId=2665,ExcludeTemplateId=-1,LinkText='',ShowTextOnFail=False,ShowAnchor=False)