Previous Next

Get recommendation resource metadata URL link

The resource endpoint returns a link to the recommendation resource metadata URL in the response header.

The following tables summarize the client request.

Path Parameters
Name Description Format
recommendationName Name of the recommendation string
siteName Name of the site string

The following tables summarize the server response.

200 Response

Resource metadata URL in the response header with rel as "describedby"

The following example shows how to get a metadata URL link of a recommendation resource for Running Recommendation in the avisports sample site, by submitting an OPTIONS request on the REST resource using cURL.

curl -i -X OPTIONS "http://<host>:<port>/<context>/REST/resources/v1/aggregates/avisports/engage/recommendation/Running%20Recommendation/items"

Example of Response Header

The following example shows the response header.

HTTP/1.1 200 OK
Link: <http://<host>:<port>/<context>/REST/resources/v1/metadata-catalog/aggregates/avisports/engage/recommendation/Running%20Recommendation/items>; rel="describedby" 
Content-Type: text/html;charset=utf-8
Content-Length: 0