Page MenuHomeSoftware Heritage

Create API endpoint to expose raw extrinsic metadata on origins
Closed, ResolvedPublic

Description

We need an access point to see the collected raw extrinsic metadata on origins

July 2022 ERMDS stats: P1400

Now we need to access the metadata via this endpoint:
/api/1/raw-extrinsic-metadata/swhid/
Returns raw extrinsic metadata collected on a given object.

swhid => origin

/api/1/raw-extrinsic-metadata/swhid/authorities/
Returns a list of metadata authorities that provided metadata on the given target

swhid => origin

Use Origin to ORI SWHID?
python3 -c 'from swh.model.model import Origin; print(Origin(url="https://github.com/codemeta/codemeta/").swhid())'
or this: python3 -c 'import hashlib; print("swh:1:ori:" + hashlib.sha1(b"https://github.com/codemeta/codemeta/").hexdigest())'

Event Timeline

moranegg created this task.
vlorentz renamed this task from Create API endpoint to expose raw extrinsic metadata from forges to Create API endpoint to expose raw extrinsic metadata on origins.Jul 5 2022, 5:00 PM
vlorentz updated the task description. (Show Details)