Browse - ioChem-BD module - REST API
You can find out more about ioChem-BD at https://www.iochem-bd.org/.
Additional links:
- Project source code
- Create module API
- Browse module API
- Find Central Service API
Base URL
The Browse module is built on DSpace and exposes the standard DSpace REST API (HAL+JSON). Each ioChem-BD instance has its own URL; replace the hostname with yours:
https://<hostname>/browse/server/apiOpening https://<hostname>/browse/server/ in a browser shows the HAL Browser, an interactive explorer of the API: follow the links of each resource to discover the available endpoints.
License: AGPL 3.0 · Contact: contact@iochem-bd.org
Public read access
Published content (not under embargo) can be read without authentication. These are the most useful endpoints:
| Endpoint | Description |
|---|---|
GET /core/communities/search/top | Top-level communities (usually one per research group) |
GET /core/communities/{uuid}/collections | Collections (published projects) of a community |
GET /core/collections/{uuid} | A collection and its metadata |
GET /core/items/{uuid} | An item (published calculation, report or asset) and its metadata |
GET /core/items/{uuid}/bundles | The files of an item, grouped in bundles (ORIGINAL holds the uploaded files) |
GET /core/bitstreams/{uuid}/content | Downloads a file |
GET /discover/search/objects?query=...&dsoType=ITEM | Full-text search, with the same filters as the Browse search page |
GET /pid/find?id={handle} | Resolves a handle (e.g. 100/72) to its object |
Lists are paginated: use the page and size parameters and follow the next link of the response.
Example: search and read a calculation
# Find calculations matching "water"
curl -s 'https://<hostname>/browse/server/api/discover/search/objects?query=water&dsoType=ITEM'
# Read one of the returned items
curl -s 'https://<hostname>/browse/server/api/core/items/56ee6579-c28e-4e9e-a8f9-a66a3d6788d6'Besides the Dublin Core fields (dc.title, dc.contributor.author, ...), the metadata of a calculation holds the chemistry fields extracted from its CML file, in the cml schema: for example cml.formula.generic, cml.method, cml.basisset, cml.calculationtype, cml.charge, cml.multiplicity and cml.energy.value.
Authenticated access
Embargoed content and administrative operations need an authenticated session. Authentication goes through the ioChem-BD login page (CAS, with OpenID Connect): GET /authn/status reports it in its WWW-Authenticate header, together with the login location. The Browse web interface handles this login for its users; API clients act on behalf of a logged-in session and must send the CSRF token in every POST, PUT, PATCH and DELETE request (DSPACE-XSRF-TOKEN response header, sent back in the X-XSRF-TOKEN request header). See the DSpace REST authentication documentation for the details.
Reviewers of an embargoed collection don't need an account: the peer review link of the collection gives them access (see Setting the embargo).
