der
my $_header_accept = $self->{api_client}
->select_header_accept( 'application/json', 'text/json' );
if ($_header_accept) {
$header_params->{'Accept'} = $_header_accept;
}
der
my $_header_accept = $self->{api_client}
->select_header_accept( 'application/json', 'text/json' );
if ($_header_accept) {
$header_params->{'Accept'} = $_header_accept;
}
ms->{'Content-Type'} = $self->{api_client}
->select_header_content_type( 'application/json', 'text/json' );
my $_body_data;
# body params
if ( exists $args{'name'} ) {
$_bo
der
my $_header_accept = $self->{api_client}
->select_header_accept( 'application/json', 'text/json' );
if ($_header_accept) {
$header_params->{'Accept'} = $_header_accept;
}
se;
use HTTP::Request::Common qw(DELETE POST GET HEAD PUT);
use HTTP::Status;
use URI::Query;
use JSON;
use URI::Escape;
use Scalar::Util;
use Log::Any qw($log);
use Carp;
use Module::Runtime qw(use_m
y data
$body_data = to_json( $body_data->to_hash )
if defined $body_data
&& ref $body_data ne 'ARRAY'
&& $body_data->can('to_hash'); # model to json string
my $_body_data
return $value->datetime();
}
else {
return $value;
}
}
# Deserialize a JSON string into an object
#
# @param string $class class name is passed as a string
# @param string $
der
my $_header_accept = $self->{api_client}
->select_header_accept( 'application/json', 'text/json' );
if ($_header_accept) {
$header_params->{'Accept'} = $_header_accept;
}
artcat::Client::ProjectApi;
require 5.6.0;
use strict;
use warnings;
use utf8;
use Exporter;
use JSON;
use Carp qw( croak );
use Log::Any qw($log);
use Smartcat::Client::ApiClient;
use base "Class:
der
my $_header_accept = $self->{api_client}
->select_header_accept( 'application/json', 'text/json' );
if ($_header_accept) {
$header_params->{'Accept'} = $_header_accept;
}
undef,
undef,
Content_Type => 'application/json',
Content => to_json( [ $args{'document_model'}->to_hash ] )
]
);
}
i
der
my $_header_accept = $self->{api_client}
->select_header_accept( 'application/json', 'text/json' );
if ($_header_accept) {
$header_params->{'Accept'} = $_header_accept;
}
ms->{'Content-Type'} = $self->{api_client}
->select_header_content_type( 'application/json', 'text/json' );
my $_body_data;
# body params
if ( exists $args{'formats'} ) {
$
der
my $_header_accept = $self->{api_client}
->select_header_accept( 'application/json', 'text/json' );
if ($_header_accept) {
$header_params->{'Accept'} = $_header_accept;
}
der
my $_header_accept = $self->{api_client}
->select_header_accept( 'application/json', 'text/json' );
if ($_header_accept) {
$header_params->{'Accept'} = $_header_accept;
}
der
my $_header_accept = $self->{api_client}
->select_header_accept( 'application/json', 'text/json' );
if ($_header_accept) {
$header_params->{'Accept'} = $_header_accept;
}
der
my $_header_accept = $self->{api_client}
->select_header_accept( 'application/json', 'text/json' );
if ($_header_accept) {
$header_params->{'Accept'} = $_header_accept;
}
ms->{'Content-Type'} = $self->{api_client}
->select_header_content_type( 'application/json', 'text/json' );
my $_body_data;
# body params
if ( exists $args{'callback_property'} ) {
lient::Object::CreateProjectModel;
require 5.6.0;
use strict;
use warnings;
use utf8;
use JSON qw(decode_json);
use Data::Dumper;
use Module::Runtime qw(use_module);
use Log::Any qw($log);
use Date::
# return perl hash
sub to_hash {
return decode_json( JSON->new->convert_blessed->encode(shift) );
}
# used by JSON for serialization
sub TO_JSON {
my $self = shift;
my $_data = {};
f
alize the data
while ( my ( $_key, $_type ) = each %{ $self->swagger_types } ) {
my $_json_attribute = $self->attribute_map->{$_key};
if ( $_type =~ /^array\[/i ) { # array
cat::Client::Object::UploadedFile;
require 5.6.0;
use strict;
use warnings;
use utf8;
use JSON qw(decode_json);
use Data::Dumper;
use Module::Runtime qw(use_module);
use Log::Any qw($log);
use Date::
# return perl hash
sub to_hash {
return decode_json( JSON->new->convert_blessed->encode(shift) );
}
# used by JSON for serialization
sub TO_JSON {
my $self = shift;
my $_data = {};
f
alize the data
while ( my ( $_key, $_type ) = each %{ $self->swagger_types } ) {
my $_json_attribute = $self->attribute_map->{$_key};
if ( $_type =~ /^array\[/i ) { # array
ient::Object::ProjectChangesModel;
require 5.6.0;
use strict;
use warnings;
use utf8;
use JSON qw(decode_json);
use Data::Dumper;
use Module::Runtime qw(use_module);
use Log::Any qw($log);
use Date::
# return perl hash
sub to_hash {
return decode_json( JSON->new->convert_blessed->encode(shift) );
}
# used by JSON for serialization
sub TO_JSON {
my $self = shift;
my $_data = {};
f
alize the data
while ( my ( $_key, $_type ) = each %{ $self->swagger_types } ) {
my $_json_attribute = $self->attribute_map->{$_key};
if ( $_type =~ /^array\[/i ) { # array
:TranslationMemoryForProjectModel;
require 5.6.0;
use strict;
use warnings;
use utf8;
use JSON qw(decode_json);
use Data::Dumper;
use Module::Runtime qw(use_module);
use Log::Any qw($log);
use Date::
# return perl hash
sub to_hash {
return decode_json( JSON->new->convert_blessed->encode(shift) );
}
# used by JSON for serialization
sub TO_JSON {
my $self = shift;
my $_data = {};
f
alize the data
while ( my ( $_key, $_type ) = each %{ $self->swagger_types } ) {
my $_json_attribute = $self->attribute_map->{$_key};
if ( $_type =~ /^array\[/i ) { # array
der
my $_header_accept = $self->{api_client}
->select_header_accept( 'application/json', 'text/json' );
if ($_header_accept) {
$header_params->{'Accept'} = $_header_accept;
}
ms->{'Content-Type'} = $self->{api_client}
->select_header_content_type( 'application/json', 'text/json' );
my $_body_data;
# body params
if ( exists $args{'model'} ) {
$_b
arget/swagger-codegen-cli.jar generate \
-i [URL or file path to JSON swagger API spec] \
-l perl \
-c /path/to/config/file.json \
-o /path/to/output/folder
Bang, all done. Run the C<autodoc>
der
my $_header_accept = $self->{api_client}
->select_header_accept( 'application/json', 'text/json' );
if ($_header_accept) {
$header_params->{'Accept'} = $_header_accept;
}
ms->{'Content-Type'} = $self->{api_client}
->select_header_content_type( 'application/json', 'text/json' );
my $_body_data;
# body params
if ( exists $args{'model'} ) {
$_b
der
my $_header_accept = $self->{api_client}
->select_header_accept( 'application/json', 'text/json' );
if ($_header_accept) {
$header_params->{'Accept'} = $_header_accept;
}
::Object::SegmentWithMatchesModel;
require 5.6.0;
use strict;
use warnings;
use utf8;
use JSON qw(decode_json);
use Data::Dumper;
use Module::Runtime qw(use_module);
use Log::Any qw($log);
use Date::
# return perl hash
sub to_hash {
return decode_json( JSON->new->convert_blessed->encode(shift) );
}
# used by JSON for serialization
sub TO_JSON {
my $self = shift;
my $_data = {};
f
alize the data
while ( my ( $_key, $_type ) = each %{ $self->swagger_types } ) {
my $_json_attribute = $self->attribute_map->{$_key};
if ( $_type =~ /^array\[/i ) { # array
cat::Client::Object::AccountModel;
require 5.6.0;
use strict;
use warnings;
use utf8;
use JSON qw(decode_json);
use Data::Dumper;
use Module::Runtime qw(use_module);
use Log::Any qw($log);
use Date::
# return perl hash
sub to_hash {
return decode_json( JSON->new->convert_blessed->encode(shift) );
}
# used by JSON for serialization
sub TO_JSON {
my $self = shift;
my $_data = {};
f
alize the data
while ( my ( $_key, $_type ) = each %{ $self->swagger_types } ) {
my $_json_attribute = $self->attribute_map->{$_key};
if ( $_type =~ /^array\[/i ) { # array
bject::DocumentWorkflowStageModel;
require 5.6.0;
use strict;
use warnings;
use utf8;
use JSON qw(decode_json);
use Data::Dumper;
use Module::Runtime qw(use_module);
use Log::Any qw($log);
use Date::
# return perl hash
sub to_hash {
return decode_json( JSON->new->convert_blessed->encode(shift) );
}
# used by JSON for serialization
sub TO_JSON {
my $self = shift;
my $_data = {};
f
alize the data
while ( my ( $_key, $_type ) = each %{ $self->swagger_types } ) {
my $_json_attribute = $self->attribute_map->{$_key};
if ( $_type =~ /^array\[/i ) { # array
Object::ProjectWorkflowStageModel;
require 5.6.0;
use strict;
use warnings;
use utf8;
use JSON qw(decode_json);
use Data::Dumper;
use Module::Runtime qw(use_module);
use Log::Any qw($log);
use Date::
# return perl hash
sub to_hash {
return decode_json( JSON->new->convert_blessed->encode(shift) );
}
# used by JSON for serialization
sub TO_JSON {
my $self = shift;
my $_data = {};
f
alize the data
while ( my ( $_key, $_type ) = each %{ $self->swagger_types } ) {
my $_json_attribute = $self->attribute_map->{$_key};
if ( $_type =~ /^array\[/i ) { # array
t::Client::Object::DirectoryModel;
require 5.6.0;
use strict;
use warnings;
use utf8;
use JSON qw(decode_json);
use Data::Dumper;
use Module::Runtime qw(use_module);
use Log::Any qw($log);
use Date::
# return perl hash
sub to_hash {
return decode_json( JSON->new->convert_blessed->encode(shift) );
}
# used by JSON for serialization
sub TO_JSON {
my $self = shift;
my $_data = {};
f
alize the data
while ( my ( $_key, $_type ) = each %{ $self->swagger_types } ) {
my $_json_attribute = $self->attribute_map->{$_key};
if ( $_type =~ /^array\[/i ) { # array