NAME

CPAN::Testers::API::Controller::Upload - API for uploads to CPAN

VERSION

version 0.025

DESCRIPTION

METHODS

get

### Requests:
GET /v1/upload
GET /v1/upload?since=2016-01-01T12:34:00
GET /v1/upload/dist/My-Dist
GET /v1/upload/dist/My-Dist?since=2016-01-01T12:34:00
GET /v1/upload/author/PREACTION
GET /v1/upload/author/PREACTION?since=2016-01-01T12:34:00

### Response:
200 OK
Content-Type: application/json

[
    {
        "dist": "My-Dist",
        "version": "1.000",
        "author": "PREACTION",
        "filename": "My-Dist-1.000.tar.gz",
        "released": "2016-08-12T04:02:34Z",
    }
]

Get CPAN upload data. Results can be limited by distribution (with the dist key in the stash), by author (with the author key in the stash), and by date (with the since query parameter).

feed

Get a feed for uploads to CPAN. This feed returns the same information as the regular API, but as they come in.

SEE ALSO

CPAN::Testers::Schema::Result::Upload
Mojolicious::Controller

AUTHOR

Doug Bell <preaction@cpan.org>

COPYRIGHT AND LICENSE

This software is copyright (c) 2018 by Doug Bell.

This is free software; you can redistribute it and/or modify it under the same terms as the Perl 5 programming language system itself.