Skip to content
GitLab
Explore
Sign in
Primary navigation
Search or go to…
Project
P
perl-WebService-Redmine
Manage
Activity
Members
Labels
Plan
Issues
Issue boards
Milestones
Wiki
Code
Merge requests
Repository
Branches
Commits
Tags
Repository graph
Compare revisions
Snippets
Deploy
Releases
Package registry
Model registry
Operate
Terraform modules
Monitor
Incidents
Service Desk
Analyze
Value stream analytics
Contributor analytics
Repository analytics
Model experiments
Help
Help
Support
GitLab documentation
Compare GitLab plans
GitLab community forum
Contribute to GitLab
Provide feedback
Terms and privacy
Keyboard shortcuts
?
Snippets
Groups
Projects
Show more breadcrumbs
Gerhard Gonter
perl-WebService-Redmine
Commits
3664870e
Commit
3664870e
authored
Apr 10, 2014
by
Anton Soldatov
Browse files
Options
Downloads
Patches
Plain Diff
Documentation improved
parent
785756fe
No related branches found
No related tags found
No related merge requests found
Changes
1
Show whitespace changes
Inline
Side-by-side
Showing
1 changed file
lib/RedMiner/API.pm
+26
-4
26 additions, 4 deletions
lib/RedMiner/API.pm
with
26 additions
and
4 deletions
lib/RedMiner/API.pm
+
26
−
4
View file @
3664870e
...
@@ -108,7 +108,9 @@ All methods are dynamically converted to actual HTTP requests using following co
...
@@ -108,7 +108,9 @@ All methods are dynamically converted to actual HTTP requests using following co
=head2 Objects Belonging to Other Objects
=head2 Objects Belonging to Other Objects
#
# Example for project membership(s)
# Example for project membership(s)
#
my $project_id = 42;
my $project_id = 42;
my $membership_id = 42;
my $membership_id = 42;
...
@@ -314,9 +316,12 @@ sub _response
...
@@ -314,9 +316,12 @@ sub _response
return
{};
return
{};
}
}
return
eval
{
my
$content
=
eval
{
JSON::XS::
decode_json
(
$response
->
decoded_content
)
};
JSON::XS::
decode_json
(
$response
->
decoded_content
)
if
(
$@
)
{
}
//
$self
->
_set_error
(
$@
);
return
$self
->
_set_error
(
$@
);
}
return
$content
;
}
}
sub
_dispatch_name
sub
_dispatch_name
...
@@ -457,7 +462,24 @@ sub _category
...
@@ -457,7 +462,24 @@ sub _category
=head1 SEE ALSO
=head1 SEE ALSO
RedMine::API: http://search.cpan.org/~celogeek/Redmine-API-0.04/
Redmine::API (https://metacpan.org/pod/Redmine::API). Major differences
between this module and Redmine::API are:
=over
=item *
B<Dependencies>. Redmine::API depends on Moo and REST::Client which in turn depends on
LWP::UserAgent, URI and possibly others. RedMiner::API uses pure Perl OOP and
depends directly on LWP::UserAgent and URI.
=item *
B<Call conventions>. Although both modules use dynamic dispatching for building actual HTTP
requests, they do it in a different manner. In particular, RedMiner::API tries to
dispatch a single method name without using chains of interrim objects as Redmine::API does.
=back
=head1 AUTHOR
=head1 AUTHOR
...
...
This diff is collapsed.
Click to expand it.
Preview
0%
Loading
Try again
or
attach a new file
.
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Save comment
Cancel
Please
register
or
sign in
to comment