http-api

RESTful HTTP-API for the B2STAGE service inside the EUDAT project

View the Project on GitHub EUDAT-B2STAGE/http-api

Publish data

Data available on B2SAFE can be shared to non-authenticated users.

To allow such operations we are testing a new experimental feature. To mymic access for any user inside the iRODS technology behind B2SAFE the irods anonymous user is the chosen implementation; this is the equivalent of a guest user mechanism.

The workflow

When a data object is published to any guest user access, it’s accessible via browser to the URL /api/public/<ipath>.

Caveats

NOTE: This feature is not enabled by default.

This feature depends on the variable IRODS_ANONYMOUS in the project configuration file. If the variable is set to 1 then the anonymous user is expected to be found in the B2SAFE instance. A check at startup is made to verify the condition.

To create the anonymous user on an irods instance you would require these commands:

imkdir /$IRODS_ZONE/home/anonymous
ichmod write anonymous /$IRODS_ZONE/home/anonymous
ichmod read anonymous /$IRODS_ZONE/home/public