-
- Downloads
Add support for querying raw-extrinsic-metadata for origins
It is purposefully discouraged to query the api-1-raw-extrinsic-metadata-swhid endpoint directly, as extended SWHIDs should not be part of the public API. Instead, clients should query api-1-origin first, and rely on the link in its response to fetch metadata.
Showing
- swh/web/api/utils.py 7 additions, 1 deletionswh/web/api/utils.py
- swh/web/api/views/metadata.py 37 additions, 5 deletionsswh/web/api/views/metadata.py
- swh/web/api/views/origin.py 4 additions, 0 deletionsswh/web/api/views/origin.py
- swh/web/tests/api/test_utils.py 19 additions, 2 deletionsswh/web/tests/api/test_utils.py
- swh/web/tests/api/views/test_metadata.py 50 additions, 16 deletionsswh/web/tests/api/views/test_metadata.py
Loading
Please register or sign in to comment