get uri config
API Support | Available since | Last updated | Output |
---|---|---|---|
5.0500 | 5.9900 | xml |
Description
This service returns all the configuration files for a document based on its document type, media type or a URL type.
The xref-config.xml is returned if found in the following folders, in the following order:
/template/[project]/config
/template/[global]/config
/template/default/config
PSML
If the URI is a PSML document, the relevant configuration files are:
This service first tries to locate where the document is defined by looking for the corresponding folder based on document type, in the following defined order:
/template/[project]/psml/[type]
/template/[global]/psml/[type]
/template/default/psml/[type]
/template/default/psml/default
Other media
If the URI is not a PSML document, the relevant configuration files are:
media-template.psml
editor-config.xml
- document labels from project configuration
This service first tries to locate where the document is defined by looking for the corresponding folder based on file extension, in the following defined order:
/template/[project]/document/[extension]
/template/[global]/document/[extension]
/template/default/document/[extension]
URL
For external URIs they are:
url-config.xml
url-template.xml
editor-config.xml
- document labels from project configuration
This service first tries to locate where the document is defined by looking for the corresponding folder based on URL type, in the following order:
/template/[global]/url/[type]
/template/default/url/[type]
Parameters
No parameters.
Permission
This service requires guest or higher unless the group is public.
Response
For PSML
<document-type definedby="myproject" name="mytype" icon="/weborganic/psml/default/fallback-icon.png" css="/woconfig/myproject/psml/mytype/document.css"> [<xref-configs> ... </xref-configs>] [<document-config> ... </document-config>] [<document-template type="psml"> ... </document-template>] [<editor-configs> ... </editor-configs>] </document-type>
For non PSML
<document-extension definedby="default,myproject" name="jpg"> [<xref-configs> ... </xref-configs>] [<media-template type="psml"> ... </media-template>] [<editor-configs> ... </editor-configs>] [<label-config scope="project" template="myproject" updated="2017-04-24T13:31:24+10:00"> <labels type="document"> ... </labels> </label-config>] </document-extension>
For external URIs (URLs)
<url-type definedby="myproject" name="mytype"> [<xref-configs> ... </xref-configs>] [<url-config> ... </url-config>] [<url-template> ... </url-template>] [<editor-configs> ... </editor-configs>] </document-type>
Error Handling
No specific error handling.