https://redmine.openatlas.eu/https://redmine.openatlas.eu/favicon.ico?17112826112020-10-22T10:04:15ZRedmineOpenAtlas - Feature #1401: API: file accesshttps://redmine.openatlas.eu/issues/1401?journal_id=66442020-10-22T10:04:15ZAlexander Watzingeralexander.watzinger@oeaw.ac.at
<ul><li><strong>Subject</strong> changed from <i>API: Make linked images available </i> to <i>API: file access</i></li><li><strong>Status</strong> changed from <i>New</i> to <i>Acknowledged</i></li></ul><p>Good question. It works with the THANADOS (Flask) frontend because there authorization uses the functionality of the backend. My thoughts:</p>
<p>Images are <strong>not in the web root folder</strong>, so not available by default and that won't change.</p>
<p>We can implement that they are accessible if the <strong>API is public</strong>, I wouldn't make an extra option because either you have access to data (including file data) or not.</p>
<p>I generally don't want to get into the (quite possible) mess to allow API access on a per entity level basis but with files we could restrict access to files with a <strong>specified license</strong>. Luckily license is a standard type (the root type can't be deleted or renamed) but we may add a whitelist to further define which licenses are ok for public access.</p> OpenAtlas - Feature #1401: API: file accesshttps://redmine.openatlas.eu/issues/1401?journal_id=66452020-10-22T10:31:17ZBernhard Koschiček-Krombholz
<ul></ul><pre>
We can implement that they are accessible if the API is public, I wouldn't make an extra option because either you have access to data (including file data) or not.
</pre><br />I implemented it this way. And there I have a reason to write manual text with sphinx.... OpenAtlas - Feature #1401: API: file accesshttps://redmine.openatlas.eu/issues/1401?journal_id=66482020-10-22T15:08:18ZBernhard Koschiček-Krombholz
<ul></ul><p>Coding complete. To do: Code commentation of api_access, sphinx documentation and nosetests</p> OpenAtlas - Feature #1401: API: file accesshttps://redmine.openatlas.eu/issues/1401?journal_id=66562020-10-27T09:26:17ZBernhard Koschiček-Krombholz
<ul><li><strong>Status</strong> changed from <i>Acknowledged</i> to <i>Closed</i></li></ul> OpenAtlas - Feature #1401: API: file accesshttps://redmine.openatlas.eu/issues/1401?journal_id=67352020-11-28T14:04:59ZAlexander Watzingeralexander.watzinger@oeaw.ac.at
<ul><li><strong>Target version</strong> changed from <i>6.0.0</i> to <i>5.6.0</i></li></ul>