How to retrieve all metadata fields with specific prefix from all schemas using a single endpoint?
Hi community,
I need to retrieve all metadata fields that start with a specific prefix (e.g., nameMetadata_) from all metadata schemas in AEM.
Current situation:
I'm currently using this endpoint to get fields from a specific schema:
{{Instance}}/conf/global/settings/dam/adminui-extension/metadataschema/default.infinity.jsonWith a script, I can process the JSON and filter the metadata fields I need, but this endpoint only points to the default schema.
What I've tried:
I know I can use:
/conf/global/settings/dam/adminui-extension/metadataschema.infinity.jsonThis endpoint returns all schemas, but it requires iterating through each one and querying their fields individually.
My question:
Is there a more direct endpoint or method that allows me to:
- Retrieve in a single JSON all metadata fields from all schemas (even those not currently in use)?
- Or alternatively, is there a way to filter directly by field name (e.g., nameMetadata_*) through a query parameter or selector?
Basically, I'm looking to optimize the process and avoid having to make multiple server calls iterating schema by schema.