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:58:22 UTC

[1/4] camel git commit: CAMEL-8464 Remove likeCompanyUpdate endpoint from camel-linkedin

Repository: camel
Updated Branches:
  refs/heads/camel-2.14.x 98f5e9be0 -> 93cd9da54
  refs/heads/camel-2.15.x 3b532a8fd -> 287443066


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/1f834c18
Tree: http://git-wip-us.apache.org/repos/asf/camel/tree/1f834c18
Diff: http://git-wip-us.apache.org/repos/asf/camel/diff/1f834c18

Branch: refs/heads/camel-2.15.x
Commit: 1f834c189f70e1e12ae9ba244bc5d0bac7d46721
Parents: 3b532a8
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:57:19 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/1f834c18/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/1f834c18/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");
-
             }
         };
     }


[3/4] 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/aad7ddb3
Tree: http://git-wip-us.apache.org/repos/asf/camel/tree/aad7ddb3
Diff: http://git-wip-us.apache.org/repos/asf/camel/diff/aad7ddb3

Branch: refs/heads/camel-2.14.x
Commit: aad7ddb341661ac4f3e2f73c46b6d1d4be9c2be3
Parents: 98f5e9b
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:57:45 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/aad7ddb3/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/aad7ddb3/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");
-
             }
         };
     }


[2/4] camel git commit: CAMEL-8465 Add groups/getPosts endpoint to camel-linkedin

Posted by ni...@apache.org.
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/28744306
Tree: http://git-wip-us.apache.org/repos/asf/camel/tree/28744306
Diff: http://git-wip-us.apache.org/repos/asf/camel/diff/28744306

Branch: refs/heads/camel-2.15.x
Commit: 28744306655d1d2f8f183fc132e010d5b7ebfb7d
Parents: 1f834c1
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:57:27 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/28744306/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/28744306/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 9d3b396..f4c8f55 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>


[4/4] camel git commit: CAMEL-8465 Add groups/getPosts endpoint to camel-linkedin

Posted by ni...@apache.org.
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/93cd9da5
Tree: http://git-wip-us.apache.org/repos/asf/camel/tree/93cd9da5
Diff: http://git-wip-us.apache.org/repos/asf/camel/diff/93cd9da5

Branch: refs/heads/camel-2.14.x
Commit: 93cd9da54b56442cf90c3e2b8ea879aaa1fe0327
Parents: aad7ddb
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:57:54 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/93cd9da5/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/93cd9da5/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 0f3b301..df83bae 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>