camel-commits mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From ningji...@apache.org
Subject [2/4] camel git commit: CAMEL-8465 Add groups/getPosts endpoint to camel-linkedin
Date Tue, 10 Mar 2015 01:58:23 GMT
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 <trohovsk@redhat.com>
Authored: Mon Mar 9 19:39:33 2015 +0100
Committer: Willem Jiang <willem.jiang@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>


Mime
View raw message