API-CLI
view release on metacpan or search on metacpan
examples/githubcl-appspec.yaml view on Meta::CPAN
url:
type: string
type: object
type: array
blob:
properties:
content:
type: string
encoding:
enum:
- utf-8
- base64
sha:
type: string
size:
type: integer
type: object
blobs:
properties:
sha:
type: string
examples/githubcl-appspec.yaml view on Meta::CPAN
$ref: '#/definitions/blobs'
'403':
description: |
API rate limit exceeded. See http://developer.github.com/v3/#rate-limiting
for details.
/repos/{owner}/{repo}/git/blobs/{shaCode}:
get:
description: |
Get a Blob.
Since blobs can be any arbitrary binary data, the input and responses for
the blob API takes an encoding parameter that can be either utf-8 or
base64. If your data cannot be losslessly sent as a UTF-8 string, you can
base64 encode it.
parameters:
- description: Name of repository owner.
in: path
name: owner
required: true
type: string
- description: Name of repository.
in: path
examples/githubcl-openapi.yaml view on Meta::CPAN
$ref: '#/definitions/blobs'
'403':
description: |
API rate limit exceeded. See http://developer.github.com/v3/#rate-limiting
for details.
'/repos/{owner}/{repo}/git/blobs/{shaCode}':
get:
description: |
Get a Blob.
Since blobs can be any arbitrary binary data, the input and responses for
the blob API takes an encoding parameter that can be either utf-8 or
base64. If your data cannot be losslessly sent as a UTF-8 string, you can
base64 encode it.
parameters:
- description: Name of repository owner.
in: path
name: owner
required: true
type: string
- description: Name of repository.
in: path
examples/githubcl-openapi.yaml view on Meta::CPAN
url:
type: string
type: object
type: array
blob:
properties:
content:
type: string
encoding:
enum:
- utf-8
- base64
sha:
type: string
size:
type: integer
type: object
blobs:
properties:
sha:
type: string
examples/html/digitaloceancl.html view on Meta::CPAN
<?xml version="1.0" ?>
<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Strict//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-strict.dtd">
<html xmlns="http://www.w3.org/1999/xhtml">
<head>
<title></title>
<meta http-equiv="content-type" content="text/html; charset=utf-8" />
<link rev="made" href="mailto:root@localhost" />
</head>
<body>
<ul id="index">
<li><a href="#NAME">NAME</a></li>
<li><a href="#ABSTRACT">ABSTRACT</a></li>
examples/html/githubcl.html view on Meta::CPAN
<?xml version="1.0" ?>
<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Strict//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-strict.dtd">
<html xmlns="http://www.w3.org/1999/xhtml">
<head>
<title></title>
<meta http-equiv="content-type" content="text/html; charset=utf-8" />
<link rev="made" href="mailto:root@localhost" />
</head>
<body>
<ul id="index">
<li><a href="#NAME">NAME</a></li>
<li><a href="#ABSTRACT">ABSTRACT</a></li>
examples/html/metacpancl.html view on Meta::CPAN
<?xml version="1.0" ?>
<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Strict//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-strict.dtd">
<html xmlns="http://www.w3.org/1999/xhtml">
<head>
<title></title>
<meta http-equiv="content-type" content="text/html; charset=utf-8" />
<link rev="made" href="mailto:root@localhost" />
</head>
<body>
<ul id="index">
<li><a href="#NAME">NAME</a></li>
<li><a href="#ABSTRACT">ABSTRACT</a></li>
lib/API/CLI/Cmd.pm view on Meta::CPAN
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};
my $outfile = $options->{out};
my $class = $options->{class} || 'API::CLI';
my $name = $options->{name};
my $openapi = LoadFile($openapi_file);
my $appspec = API::CLI::App::Spec->openapi2appspec(
openapi => $openapi,
name => $name,
class => $class,
);
if (defined $outfile) {
DumpFile($outfile, $appspec);
say "Wrote appspec to $outfile";
}
else {
print Dump $appspec;
}
}
1;
__END__
( run in 0.280 second using v1.01-cache-2.11-cpan-4d50c553e7e )