API-CLI

 view release on metacpan or  search on metacpan

META.yml  view on Meta::CPAN

  App::Spec: '0'
  App::Spec::Run::Cmd: '0'
  File::Share: '0'
  HTTP::Request: '0'
  JSON::XS: '0'
  LWP::UserAgent: '0'
  Moo: '0'
  URI: '0'
  YAML::XS: '0'
  base: '0'
  feature: '0'
  perl: '5.010'
  strict: '0'
  warnings: '0'
resources:
  bugtracker: https://github.com/perlpunk/API-CLI-p5/issues
  repository: git://github.com/perlpunk/API-CLI-p5.git
version: '0.001'
x_serialization_backend: 'YAML::Tiny version 1.69'

Makefile.PL  view on Meta::CPAN

    "App::Spec" => 0,
    "App::Spec::Run::Cmd" => 0,
    "File::Share" => 0,
    "HTTP::Request" => 0,
    "JSON::XS" => 0,
    "LWP::UserAgent" => 0,
    "Moo" => 0,
    "URI" => 0,
    "YAML::XS" => 0,
    "base" => 0,
    "feature" => 0,
    "strict" => 0,
    "warnings" => 0
  },
  "TEST_REQUIRES" => {
    "File::Spec" => 0,
    "IO::Handle" => 0,
    "IPC::Open3" => 0,
    "Test::More" => 0,
    "blib" => "1.01"
  },

Makefile.PL  view on Meta::CPAN

  "IO::Handle" => 0,
  "IPC::Open3" => 0,
  "JSON::XS" => 0,
  "LWP::UserAgent" => 0,
  "Moo" => 0,
  "Test::More" => 0,
  "URI" => 0,
  "YAML::XS" => 0,
  "base" => 0,
  "blib" => "1.01",
  "feature" => 0,
  "strict" => 0,
  "warnings" => 0
);


unless ( eval { ExtUtils::MakeMaker->VERSION(6.63_03) } ) {
  delete $WriteMakefileArgs{TEST_REQUIRES};
  delete $WriteMakefileArgs{BUILD_REQUIRES};
  $WriteMakefileArgs{PREREQ_PM} = \%FallbackPrereqs;
}

examples/githubcl-appspec.yaml  view on Meta::CPAN

          '201':
            description: Created
            schema:
              $ref: '#/definitions/headBranch'
          '403':
            description: |
              API rate limit exceeded. See http://developer.github.com/v3/#rate-limiting
              for details.
    /repos/{owner}/{repo}/git/refs/{ref}:
      delete:
        description: "Delete a Reference\nExample: Deleting a branch: DELETE /repos/octocat/Hello-World/git/refs/heads/feature-a
          \nExample: Deleting a tag:        DELETE /repos/octocat/Hello-World/git/refs/tags/v1.0\n"
        parameters:
        - description: Name of repository owner.
          in: path
          name: owner
          required: true
          type: string
        - description: Name of repository.
          in: path
          name: repo

examples/githubcl-openapi.yaml  view on Meta::CPAN

          schema:
            $ref: '#/definitions/headBranch'
        '403':
          description: |
            API rate limit exceeded. See http://developer.github.com/v3/#rate-limiting
            for details.
  '/repos/{owner}/{repo}/git/refs/{ref}':
    delete:
      description: |
        Delete a Reference
        Example: Deleting a branch: DELETE /repos/octocat/Hello-World/git/refs/heads/feature-a 
        Example: Deleting a tag:        DELETE /repos/octocat/Hello-World/git/refs/tags/v1.0
      parameters:
        - description: Name of repository owner.
          in: path
          name: owner
          required: true
          type: string
        - description: Name of repository.
          in: path
          name: repo

lib/API/CLI/Cmd.pm  view on Meta::CPAN

# ABSTRACT: 
package API::CLI::Cmd;
use strict;
use warnings;

our $VERSION = '0.001'; # VERSION

use feature qw/ say /;
use base 'App::Spec::Run::Cmd';
use API::CLI::App::Spec;
use YAML::XS qw/ LoadFile DumpFile Dump /;

sub appspec_openapi {
    my ($self, $run) = @_;
    my $options = $run->options;
    my $parameters = $run->parameters;

    my $openapi_file = $parameters->{file};



( run in 0.303 second using v1.01-cache-2.11-cpan-4d50c553e7e )