Unable to get the complete metadata of asset using HTTP API | Adobe Higher Education
Skip to main content
Level 2
March 26, 2021
Resuelto

Unable to get the complete metadata of asset using HTTP API

  • March 26, 2021
  • 2 respuestas
  • 2627 visualizaciones

I am using the Assets HTTP API. One of the limitations is "Asset API does not return the complete metadata. In API the namespaces are hardcoded and those only get returned. If you need whole metadata, then look at the asset path /jcr_content/metadata.json."

 

I am accessing the following path but it still does not show the complete metadata

<URL>/api/assets/image.png.json/jcr_content/metadata.json

 

Am I accessing an invalid endpoint?

Este tema ha sido cerrado para respuestas.
Mejor respuesta de vikram1285

Hi,

Welcome to AEM Community !!
Are you able to access the asset's json, when you try <URL>/api/assets/image.png.json?

If yes, please try adding /jcr:content/metadata.json on that URL.

 

Note : I was trying to access the metadata on my local AEM Author instance and this works http://localhost:<portnumber>/content/dam/folder/assetname/jcr:content/metadata.json

Thanks,

Vikram Gaur

2 respuestas

vikram1285Adobe EmployeeRespuesta
Adobe Employee
June 29, 2021

Hi,

Welcome to AEM Community !!
Are you able to access the asset's json, when you try <URL>/api/assets/image.png.json?

If yes, please try adding /jcr:content/metadata.json on that URL.

 

Note : I was trying to access the metadata on my local AEM Author instance and this works http://localhost:<portnumber>/content/dam/folder/assetname/jcr:content/metadata.json

Thanks,

Vikram Gaur

Level 2
September 30, 2021

Hello @vikram1285  & @umair-afzal,

 

Adding /jcr:content/metadata.json to assets http api url <host:port>/api/assets/asset/jcr:content/metadata.json returns 404. The example given http://localhost:portnbr/content/dam/folder/assetname/jcr:content/metadata.json is not an asset http api request, it's a sling api i think. Note the beginning of the url, /api/assets vs /content/dam.

 

Thanks,

SKM

Level 3
February 7, 2022

Hi SKM, Have you found the solution for this?