Previous Next

Get search by asset type in a site resource metadata URL link

options
/resources/v1/search/sites/{siteName}/types/{assetType}/assets
The resource endpoint returns a link to the search resource metadata URL in the response header.

The following tables summarize the client request.

Path Parameters
Name Description Format
assetType Asset type 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 search resource 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/search/sites/avisports/types/AVIArticle/assets"

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/search/sites/avisports/types/AVIArticle/assets>; rel="describedby" 
Content-Type: text/html;charset=utf-8
Content-Length: 0