Add a link to our terms of use in API response headers
As a small hint for users of our rest API, let’s add a X-Terms-of-Use
header to the responses. It contains the URL of the “Terms of use for
bulk access” web page.
Merge request reports
Activity
assigned to @lunar
- Resolved by Jérémy Bobbio (Lunar)
Jenkins job DWAPPS/gitlab-builds #517 succeeded .
See Console Output and Coverage Report for more details.added 1 commit
- 2317849d - Add a link to our terms of use in API response headers
Jenkins job DWAPPS/gitlab-builds #518 succeeded .
See Console Output and Coverage Report for more details.Jenkins job DWAPPS/gitlab-builds #519 succeeded .
See Console Output and Coverage Report for more details.Our own HTML rendering of API responses doesn't show the value of response headers, so this will leave the terms of use hidden as one of many links in the footer for these users, which I expect to be a good fraction of people who explore our API.
https://archive.softwareheritage.org/api/ doesn't have a direct reference to our terms of use either (nor a disclaimer that the API isn't appropriate for scraping / bulk access).