metacpan-api
metacpan-api copied to clipboard
License: link to full text
The "License" in the navbar should be a link to the text of the full license. That content should be either:
- a COPYING or LICENSE file in the distribution if it exists
- the output of Software::License for the value from META.{yml,json}
We could attempt to add that data (license_file) to the release document... then we could link straight to the file without adding another api request.
Another option would be to make a controller like 'changes' (/license/release/@args) and just provide a link to that (assuming that we'll find the right file).
Any thoughts?
It is fair to avoid guessing the filename (and have false positive). So implementing only 2. would be a good thing.
Moving this to the api so that we can look into adding release.license_file
.