<imageServerConfiguration>
setting: you can now optionally disable the default rotation correction for any rotation metadata by setting the new adjustRotation
property to false
.<resolveLinks>
setting set to false
, a RecordNotFoundException was generated. Fixed in 3.7.1.2898.From WebAPI 3.7.1.3178, for linked fields the response of a Getmetadata
request will also contain the linked database and dataset, e.g.:
<isLinked>True</isLinked> <linkedDatabase>people</linkedDatabase> <LinkedDataset>people</LinkedDataset>
In the global configuration section of the adlibweb.xml configuration file an <apitoken>
can be configured that is checked on each request to the API.
<globalConfiguration> <databasePath>H:\FotoWare\Test\data</databasePath> <xmlType>grouped</xmlType> <debug>true</debug> <logFolder>H:\FotoWare\WebAPI_FotoWare\Logs</logFolder> <apitoken>1DF7CF1D-7148-4C5E-A5FB-A02F03B6330A</apitoken> </globalConfiguration>
However, this token can only be passed in via request parameters and is therefore not secure. It’s better to pass in the token via the request headers: this has been implemented in 3.7.1.3152: the token header is now checked when API requests are processed. Only one key can be passed. When no token is passed but required the API will return HTTP error 403.
WebAPI version 3.7.1.3123 and up now support JSON payloads via the basic POST plugin. The accompanying adapl needs to be written a little different from an adapl for XML payloads.
From WebAPI 3.7.1.3084, the response from an OAI Identify request (OAI request oai.ashx?verb=Identify
) contains a <description>
node in the <Identify>
section, displaying more information about the relevant OAI server, like the used scheme, the used delimiter and a sampleIdentifier. Optionally it can also contain a <repositoryIdentifier>
if the OAI repository name has been configured in the <OAI-REPOSITORYIDENTIFIER>
node in the <OAIConfiguration>
in adlibweb.xml.
Simply add &original=true
to the Web API call to get the original rendition. The plugin will try and get the original rendition for the requested image. If there’s no original rendition href found, then the plugin (with the image server config fallback
attribute set to true
) will fall back to what it would return otherwise. Very large images will still be resized because the maxWidth
and maxHeight
values are set to 1000 by default to prevent super large image downloads. You can bypass that by explicitly setting those properties to 0 in the fotoware image server configuration in adlibweb.xml like shown below:
<!-- Image server settings --> <imageServerConfiguration name="fotoware" fallback="true"> <servertype>FileSystem</servertype> <path>C:\Data\Projects\model5.0\images</path> <maxWidth>0</maxWidth> <maxHeight>0</maxHeight> <ImagePlugin type="Axiell.Fotoware.Plugin.FotowarePlugin, Axiell.Fotoware.Plugin"> <Host>https://ourdomain.org</Host> <ArchiveUrl>/fotoweb/archives/</ArchiveUrl> <UniqueIDField>187</UniqueIDField> <Oauth> <ClientId>1e2ge492-2234-4bww-831a-ab99a52awq7b</ClientId> <ClientSecret>TMAEWbEiBMdstNjJPperHsAEVtGUn4pa59-y1me4i5</ClientSecret> </Oauth> </ImagePlugin> </imageServerConfiguration>
This is available from version 3.7.1.2984.