You are viewing a plain text version of this content. The canonical link for it is here.
Posted to commits@isis.apache.org by bu...@apache.org on 2014/05/24 11:03:35 UTC

svn commit: r909794 - in /websites/staging/isis/trunk: cgi-bin/ content/ content/components/viewers/restfulobjects/angularjs-tips.html

Author: buildbot
Date: Sat May 24 09:03:34 2014
New Revision: 909794

Log:
Staging update by buildbot for isis

Modified:
    websites/staging/isis/trunk/cgi-bin/   (props changed)
    websites/staging/isis/trunk/content/   (props changed)
    websites/staging/isis/trunk/content/components/viewers/restfulobjects/angularjs-tips.html

Propchange: websites/staging/isis/trunk/cgi-bin/
------------------------------------------------------------------------------
--- cms:source-revision (original)
+++ cms:source-revision Sat May 24 09:03:34 2014
@@ -1 +1 @@
-1597265
+1597266

Propchange: websites/staging/isis/trunk/content/
------------------------------------------------------------------------------
--- cms:source-revision (original)
+++ cms:source-revision Sat May 24 09:03:34 2014
@@ -1 +1 @@
-1597265
+1597266

Modified: websites/staging/isis/trunk/content/components/viewers/restfulobjects/angularjs-tips.html
==============================================================================
--- websites/staging/isis/trunk/content/components/viewers/restfulobjects/angularjs-tips.html (original)
+++ websites/staging/isis/trunk/content/components/viewers/restfulobjects/angularjs-tips.html Sat May 24 09:03:34 2014
@@ -403,29 +403,30 @@
 
 <p>Suppose you have a <code>CustomerService</code> providing a <code>findCustomer</code> action:</p>
 
-<p>public class CustomerService {</p>
+<pre><code>public class CustomerService {
 
-<pre><code>public String id() { return "customers"; }
+  public String id() { return "customers"; }
 
-@ActionSemantics(Of.SAFE)
-public Customer findCustomer(@Named("customerName") String customerName) { ... }
-</code></pre>
+  @ActionSemantics(Of.SAFE)
+  public Customer findCustomer(@Named("customerName") String customerName) { ... }
 
-<p>}</p>
+}
+</code></pre>
 
 <p>Restful Objects will expose this as action with the following link that looks something like:</p>
 
-<p>{
-    "rel" : "urn:org.restfulobjects:rels/invoke",
-    "href" : "http://localhost:8080/restful/services/customers/actions/findCustomer/invoke",
-    "method" : "GET",
-    "type" : "application/json;profile=\"urn:org.restfulobjects:repr-types/action-result\"",
-    "arguments" : {
-      "customerName" : {
-        "value" : null
-      }
+<pre><code>{
+  "rel" : "urn:org.restfulobjects:rels/invoke",
+  "href" : "http://localhost:8080/restful/services/customers/actions/findCustomer/invoke",
+  "method" : "GET",
+  "type" : "application/json;profile=\"urn:org.restfulobjects:repr-types/action-result\"",
+  "arguments" : {
+    "customerName" : {
+      "value" : null
     }
-  }  </p>
+  }
+}  
+</code></pre>
 
 <p>You can then invoke this using AngularJs' <code>$resource</code> service as follows.  </p>