HomeSoftware Heritage

misc: Add new endpoints to generate swh badges

Authored by anlambert on Nov 14 2019, 1:36 PM.

Description

misc: Add new endpoints to generate swh badges

Add endpoints /badge/(object_type)/(object_id)/ and /badge/(object_pid)/
to generate Github style like SVG badges for linking to the archive in
a README file.

Those new endpoints add CORS header to the HTTP responses in order to be
used from a different domain than *.softwareheritage.org ones.

Closes T2090

Details

Committed
anlambertDec 2 2019, 3:56 PM
Pushed
anlambertDec 2 2019, 4:29 PM
Differential Revision
D2310: Add new endpoints to generate swh badges
Parents
rDWAPPSeab486bf7ff7: requirements: Pin mypy and django-stubs version
Branches
Unknown
Tags
Unknown
Tasks
Restricted Maniphest Task
Build Status
Buildable 9473
Build 13922: Cypress tests for swh-web commitsJenkins
Build 13921: test-and-buildJenkins