You are viewing a plain text version of this content. The canonical link for it is here.
Posted to commits@camel.apache.org by ni...@apache.org on 2015/03/10 02:56:46 UTC
[1/2] camel git commit: CAMEL-8465 Add groups/getPosts endpoint to
camel-linkedin
Repository: camel
Updated Branches:
refs/heads/master ac6be735b -> 6a75adf57
CAMEL-8465 Add groups/getPosts endpoint to camel-linkedin
Project: http://git-wip-us.apache.org/repos/asf/camel/repo
Commit: http://git-wip-us.apache.org/repos/asf/camel/commit/6a75adf5
Tree: http://git-wip-us.apache.org/repos/asf/camel/tree/6a75adf5
Diff: http://git-wip-us.apache.org/repos/asf/camel/diff/6a75adf5
Branch: refs/heads/master
Commit: 6a75adf579bcd9771573e4c25245d081ce703521
Parents: a4b2b2e
Author: Tomas Rohovsky <tr...@redhat.com>
Authored: Mon Mar 9 19:39:33 2015 +0100
Committer: Willem Jiang <wi...@gmail.com>
Committed: Tue Mar 10 09:56:32 2015 +0800
----------------------------------------------------------------------
.../src/main/resources/linkedin-api-wadl.xml | 19 +++++++++++++++++--
.../camel-linkedin-component/pom.xml | 7 +++++++
2 files changed, 24 insertions(+), 2 deletions(-)
----------------------------------------------------------------------
http://git-wip-us.apache.org/repos/asf/camel/blob/6a75adf5/components/camel-linkedin/camel-linkedin-api/src/main/resources/linkedin-api-wadl.xml
----------------------------------------------------------------------
diff --git a/components/camel-linkedin/camel-linkedin-api/src/main/resources/linkedin-api-wadl.xml b/components/camel-linkedin/camel-linkedin-api/src/main/resources/linkedin-api-wadl.xml
index cd7d837..cb0c390 100644
--- a/components/camel-linkedin/camel-linkedin-api/src/main/resources/linkedin-api-wadl.xml
+++ b/components/camel-linkedin/camel-linkedin-api/src/main/resources/linkedin-api-wadl.xml
@@ -433,6 +433,7 @@
<wadl:method name="GET" id="getGroup">
<wadl:request>
<wadl:param href="#group-id"/>
+ <wadl:param href="#fields-selector"/>
</wadl:request>
<wadl:response>
<wadl:representation href="#group"/>
@@ -441,8 +442,22 @@
</wadl:resource>
<wadl:resource path="{group-id}">
-
- <wadl:resource path="posts{fields}" type="tns:get-posts"/>
+ <wadl:resource path="posts{fields}">
+ <wadl:method name="GET" id="getPosts">
+ <wadl:request>
+ <wadl:param href="#group-id"/>
+ <wadl:param href="#start"/>
+ <wadl:param href="#count"/>
+ <wadl:param href="#order"/>
+ <wadl:param href="#category"/>
+ <wadl:param href="#modified-since"/>
+ <wadl:param href="#fields-selector"/>
+ </wadl:request>
+ <wadl:response>
+ <wadl:representation href="#posts"/>
+ </wadl:response>
+ </wadl:method>
+ </wadl:resource>
<wadl:resource path="posts">
<wadl:method name="POST" id="addPost">
http://git-wip-us.apache.org/repos/asf/camel/blob/6a75adf5/components/camel-linkedin/camel-linkedin-component/pom.xml
----------------------------------------------------------------------
diff --git a/components/camel-linkedin/camel-linkedin-component/pom.xml b/components/camel-linkedin/camel-linkedin-component/pom.xml
index 891135e..0da7572 100644
--- a/components/camel-linkedin/camel-linkedin-component/pom.xml
+++ b/components/camel-linkedin/camel-linkedin-component/pom.xml
@@ -146,6 +146,13 @@
<apiName>groups</apiName>
<proxyClass>org.apache.camel.component.linkedin.api.GroupsResource</proxyClass>
<fromJavadoc />
+ <nullableOptions>
+ <nullableOption>category</nullableOption>
+ <nullableOption>count</nullableOption>
+ <nullableOption>modified_since</nullableOption>
+ <nullableOption>order</nullableOption>
+ <nullableOption>start</nullableOption>
+ </nullableOptions>
</api>
<api>
<apiName>jobs</apiName>
[2/2] camel git commit: CAMEL-8464 Remove likeCompanyUpdate endpoint
from camel-linkedin
Posted by ni...@apache.org.
CAMEL-8464 Remove likeCompanyUpdate endpoint from camel-linkedin
Project: http://git-wip-us.apache.org/repos/asf/camel/repo
Commit: http://git-wip-us.apache.org/repos/asf/camel/commit/a4b2b2e8
Tree: http://git-wip-us.apache.org/repos/asf/camel/tree/a4b2b2e8
Diff: http://git-wip-us.apache.org/repos/asf/camel/diff/a4b2b2e8
Branch: refs/heads/master
Commit: a4b2b2e86638417b42f6db848476cc5891a9dae6
Parents: ac6be73
Author: Tomas Rohovsky <tr...@redhat.com>
Authored: Mon Mar 9 19:13:17 2015 +0100
Committer: Willem Jiang <wi...@gmail.com>
Committed: Tue Mar 10 09:56:32 2015 +0800
----------------------------------------------------------------------
.../src/main/resources/linkedin-api-wadl.xml | 36 +++++++-------------
.../CompaniesResourceIntegrationTest.java | 18 ----------
2 files changed, 13 insertions(+), 41 deletions(-)
----------------------------------------------------------------------
http://git-wip-us.apache.org/repos/asf/camel/blob/a4b2b2e8/components/camel-linkedin/camel-linkedin-api/src/main/resources/linkedin-api-wadl.xml
----------------------------------------------------------------------
diff --git a/components/camel-linkedin/camel-linkedin-api/src/main/resources/linkedin-api-wadl.xml b/components/camel-linkedin/camel-linkedin-api/src/main/resources/linkedin-api-wadl.xml
index 1766040..cd7d837 100644
--- a/components/camel-linkedin/camel-linkedin-api/src/main/resources/linkedin-api-wadl.xml
+++ b/components/camel-linkedin/camel-linkedin-api/src/main/resources/linkedin-api-wadl.xml
@@ -32,7 +32,7 @@
<wadl:resource path="people" id="People">
<wadl:resource path="~{fields}">
- <wadl:doc><![CDATA[https://developer.linkedin.com/documents/profile-api]]></wadl:doc>
+ <wadl:doc><![CDATA[https://developer-programs.linkedin.com/documents/profile-api]]></wadl:doc>
<wadl:method name="GET" id="getPerson">
<wadl:request>
<wadl:param href="#fields-selector"/>
@@ -46,7 +46,7 @@
</wadl:resource>
<wadl:resource path="~/connections{fields}">
- <wadl:doc><![CDATA[https://developer.linkedin.com/documents/connections-api]]></wadl:doc>
+ <wadl:doc><![CDATA[https://developer-programs.linkedin.com/documents/connections-api]]></wadl:doc>
<wadl:method name="GET" id="getConnections">
<wadl:request>
<wadl:param href="#fields-selector"/>
@@ -70,7 +70,7 @@
</wadl:resource>
<wadl:resource path="~/network">
- <wadl:doc><![CDATA[https://developer.linkedin.com/documents/get-network-updates-and-statistics-api]]></wadl:doc>
+ <wadl:doc><![CDATA[https://developer-programs.linkedin.com/documents/get-network-updates-and-statistics-api]]></wadl:doc>
<wadl:resource path="updates{fields}">
<wadl:param href="#scope"/>
@@ -158,7 +158,7 @@
</wadl:resource>
<wadl:resource path="~/mailbox">
- <wadl:doc><![CDATA[https://developer.linkedin.com/documents/invitation-api]]></wadl:doc>
+ <wadl:doc><![CDATA[https://developer-programs.linkedin.com/documents/invitation-api]]></wadl:doc>
<wadl:method name="POST" id="addInvite">
<wadl:request>
<wadl:representation mediaType="application/xml" element="tns:mailboxitem"/>
@@ -427,7 +427,7 @@
<!-- Groups Resource -->
<wadl:resource path="groups" id="Groups">
- <wadl:doc><![CDATA[https://developer.linkedin.com/documents/groups-api]]></wadl:doc>
+ <wadl:doc><![CDATA[https://developer-programs.linkedin.com/documents/groups-api]]></wadl:doc>
<wadl:resource path="{group-id}{fields}">
<wadl:method name="GET" id="getGroup">
@@ -458,7 +458,7 @@
<!-- Posts Resource -->
<wadl:resource path="posts" id="Posts">
- <wadl:doc><![CDATA[https://developer.linkedin.com/documents/commenting-reading-comments-and-likes-network-updates]]></wadl:doc>
+ <wadl:doc><![CDATA[https://developer-programs.linkedin.com/documents/commenting-reading-comments-and-likes-network-updates]]></wadl:doc>
<wadl:resource path="{post-id}{fields}">
<wadl:method name="GET" id="getPost">
@@ -536,7 +536,7 @@
<!-- Comments Resource -->
<wadl:resource path="comments" id="Comments">
- <wadl:doc><![CDATA[https://developer.linkedin.com/documents/commenting-reading-comments-and-likes-network-updates]]></wadl:doc>
+ <wadl:doc><![CDATA[https://developer-programs.linkedin.com/documents/commenting-reading-comments-and-likes-network-updates]]></wadl:doc>
<wadl:resource path="{comment-id}{fields}">
<wadl:method name="GET" id="getComment">
@@ -562,7 +562,7 @@
<!--Companies Resource -->
<wadl:resource id="Companies">
- <wadl:doc><![CDATA[https://developer.linkedin.com/documents/companies]]></wadl:doc>
+ <wadl:doc><![CDATA[https://developer-programs.linkedin.com/documents/companies]]></wadl:doc>
<wadl:resource path="companies{fields}">
<wadl:method name="GET" id="getCompanies">
@@ -660,21 +660,11 @@
</wadl:method>
</wadl:resource>
- <wadl:resource path="is-liked">
- <wadl:method name="PUT" id="likeCompanyUpdate">
- <wadl:request>
- <wadl:param href="#company-id"/>
- <wadl:param href="#update-key"/>
- <wadl:representation href="#is-liked"/>
- </wadl:request>
- </wadl:method>
- </wadl:resource>
-
</wadl:resource>
<!-- Company shares -->
<wadl:resource path="shares">
- <wadl:doc><![CDATA[https://developer.linkedin.com/documents/share-api]]></wadl:doc>
+ <wadl:doc><![CDATA[https://developer-programs.linkedin.com/documents/share-api]]></wadl:doc>
<wadl:method name="POST" id="addShare">
<wadl:request>
<wadl:param href="#company-id"/>
@@ -770,7 +760,7 @@
<!-- Jobs -->
<wadl:resource path="jobs" id="Jobs">
- <wadl:doc><![CDATA[https://developer.linkedin.com/documents/jobs]]></wadl:doc>
+ <wadl:doc><![CDATA[https://developer-programs.linkedin.com/documents/jobs]]></wadl:doc>
<wadl:method name="POST" id="addJob">
<wadl:request>
@@ -814,7 +804,7 @@
<!-- People Search -->
<wadl:resource path="people-search{fields}">
- <wadl:doc><![CDATA[https://developer.linkedin.com/documents/people-search-api]]></wadl:doc>
+ <wadl:doc><![CDATA[https://developer-programs.linkedin.com/documents/people-search-api]]></wadl:doc>
<wadl:method name="GET" id="searchPeople">
<wadl:request>
<wadl:param href="#fields-selector"/>
@@ -845,7 +835,7 @@
<!-- Company Search -->
<wadl:resource path="company-search{fields}">
- <wadl:doc><![CDATA[https://developer.linkedin.com/documents/company-search]]></wadl:doc>
+ <wadl:doc><![CDATA[https://developer-programs.linkedin.com/documents/company-search]]></wadl:doc>
<wadl:method name="GET" id="searchCompanies">
<wadl:request>
<wadl:param href="#fields-selector"/>
@@ -865,7 +855,7 @@
<!-- Job Search -->
<wadl:resource path="job-search{fields}">
- <wadl:doc><![CDATA[https://developer.linkedin.com/documents/job-search-api]]></wadl:doc>
+ <wadl:doc><![CDATA[https://developer-programs.linkedin.com/documents/job-search-api]]></wadl:doc>
<wadl:method name="GET" id="searchJobs">
<wadl:request>
<wadl:param href="#fields-selector"/>
http://git-wip-us.apache.org/repos/asf/camel/blob/a4b2b2e8/components/camel-linkedin/camel-linkedin-component/src/test/java/org/apache/camel/component/linkedin/CompaniesResourceIntegrationTest.java
----------------------------------------------------------------------
diff --git a/components/camel-linkedin/camel-linkedin-component/src/test/java/org/apache/camel/component/linkedin/CompaniesResourceIntegrationTest.java b/components/camel-linkedin/camel-linkedin-component/src/test/java/org/apache/camel/component/linkedin/CompaniesResourceIntegrationTest.java
index acfcec6..785f563 100644
--- a/components/camel-linkedin/camel-linkedin-component/src/test/java/org/apache/camel/component/linkedin/CompaniesResourceIntegrationTest.java
+++ b/components/camel-linkedin/camel-linkedin-component/src/test/java/org/apache/camel/component/linkedin/CompaniesResourceIntegrationTest.java
@@ -268,20 +268,6 @@ public class CompaniesResourceIntegrationTest extends AbstractLinkedInTestSuppor
LOG.debug("isViewerShareEnabled: " + result);
}
- // TODO provide parameter values for likeCompanyUpdate
- @Ignore
- @Test
- public void testLikeCompanyUpdate() throws Exception {
- final Map<String, Object> headers = new HashMap<String, Object>();
- headers.put("CamelLinkedIn.company_id", 0L);
- // parameter type is String
- headers.put("CamelLinkedIn.update_key", null);
- // parameter type is org.apache.camel.component.linkedin.api.model.IsLiked
- headers.put("CamelLinkedIn.isliked", null);
-
- requestBodyAndHeaders("direct://LIKECOMPANYUPDATE", null, headers);
- }
-
@Override
protected RouteBuilder createRouteBuilder() throws Exception {
return new RouteBuilder() {
@@ -342,10 +328,6 @@ public class CompaniesResourceIntegrationTest extends AbstractLinkedInTestSuppor
from("direct://ISVIEWERSHAREENABLED")
.to("linkedin://" + PATH_PREFIX + "/isViewerShareEnabled?inBody=company_id");
- // test route for likeCompanyUpdate
- from("direct://LIKECOMPANYUPDATE")
- .to("linkedin://" + PATH_PREFIX + "/likeCompanyUpdate");
-
}
};
}