Page MenuHomeSoftware Heritage

Deploy api endpoint to access raw extrinsic metadata
Closed, MigratedEdits Locked

Description

requires:

  • new swh.storage v0.31 version bump
  • restart gunicorn-swh-storage service
  • new swh.web v0.0.314 deployment
  • restart gunicorn-swh-webapp

First in staging, then in production if everything is ok.

Event Timeline

ardumont triaged this task as Normal priority.Jun 28 2021, 11:28 AM
ardumont created this task.

Deployed:

  • staging [1]
  • production [2]

The example link [3] does return information

[1] https://webapp.staging.swh.network/api/1/raw-extrinsic-metadata/swhid/doc/

[2] https://archive.softwareheritage.org/api/1/raw-extrinsic-metadata/swhid/doc/

[3] https://archive.softwareheritage.org/api/1/raw-extrinsic-metadata/swhid/swh:1:dir:a2faa28028657859c16ff506924212b33f0e1307/?authority=forge%20https://pypi.org/

[
    {
        "authority": {
            "type": "forge",
            "url": "https://pypi.org/"
        },
        "discovery_date": "2021-05-10T04:07:32+00:00",
        "fetcher": {
            "name": "swh.loader.package.pypi.loader.PyPILoader",
            "version": "0.22.0"
        },
        "format": "pypi-project-json",
        "metadata_url": "https://webapp.staging.swh.network/api/1/raw-extrinsic-metadata/get/c0e314ab2357f76172d884cf7d43a66dcede2c8d/?filename=swh:1:dir:a2faa28028657859c16ff506924212b33f0e1307_metadata",
        "origin": "https://pypi.org/project/swh.core/",
        "revision": "swh:1:rev:48371365859f4724c609895caaab362168623507",
        "target": "swh:1:dir:a2faa28028657859c16ff506924212b33f0e1307"
    }
]