CPAN-API/cpan-api — pull request #222 by rwstauner (2012-08-12 05:37:33+00:00)
Title: Add /changes endpoint to return file meta and content

It's been a long time since I started this,
but i originally borrowed most of the logic originally from metacpan-web...

Find a file in the root of the dist with a name from this list
then return the indexed file metadata along with the full file content (added as the `content` key).

The "pick the best file" logic could probably be put into the indexer
and add a `changes_file` to the release mapping (that might be the wrong word)
but I don't know how to put stuff in the index and i don't know what it takes to reindex everything,
so i thought this was a good start.

There's a TODO comment about `__PACKAGE->config(relationships => ` or something like that...
I noticed it in other controllers but didn't know what to do with it.

Anyway, it's a start.