y::Adapter;
use Alien::SwaggerUI;
use File::Spec::Functions qw( catdir catfile );
use JSON::MaybeXS qw( encode_json );
#pod =method schema
#pod
#pod my $schema = $c->schema;
#pod
#pod Get the sch
ast_json = sub( $c, $data ) {
if ( blessed $data || ( ref $data eq 'HASH' && $data->{errors} ) ) {
return Mojo::JSON::encode_json( $data );
}
return encode_json( $d
API' => 'v1.json' ),
allow_invalid_ref => 1,
renderer => $render_fast_json,
} );
$app->plugin( OpenAPI => {
url => dist_file( 'CPAN-Testers-API' => 'v3.json' ),
pod # ?limit=2
#pod
#pod ### Response:
#pod 200 OK
#pod Content-Type: application/json
#pod
#pod [
#pod {
#pod "dist": "My-Dist",
#pod "version": "1
# ?maturity=stable
# ?limit=2
### Response:
200 OK
Content-Type: application/json
[
{
"dist": "My-Dist",
"version": "1.000",
"pass
016-01-01T12:34:00
#pod
#pod ### Response:
#pod 200 OK
#pod Content-Type: application/json
#pod
#pod [
#pod {
#pod "dist": "My-Dist",
#pod "version": "1
r/PREACTION?since=2016-01-01T12:34:00
### Response:
200 OK
Content-Type: application/json
[
{
"dist": "My-Dist",
"version": "1.000",
"auth
ith raw test reports
#pod =head1 DESCRIPTION
#pod
#pod This API allows working directly with the JSON report documents
#pod submitted by the army of testers of CPAN.
#pod
#pod =head1 SEE ALSO
#pod
#p
rts
=head1 VERSION
version 0.029
=head1 DESCRIPTION
This API allows working directly with the JSON report documents
submitted by the army of testers of CPAN.
=head1 METHODS
=head2 report_post
mary/My-Dist/1.000
#pod
#pod ### Response:
#pod 200 OK
#pod Content-Type: application/json
#pod
#pod [
#pod {
#pod "guid": "00000000-0000-0000-0000-0000000000001",
ist
GET /v3/summary/My-Dist/1.000
### Response:
200 OK
Content-Type: application/json
[
{
"guid": "00000000-0000-0000-0000-0000000000001",
"id": 1