Changes for page Your First Rest Project
Last modified by Steve Peery on 2013/09/06 11:02
From version 48.1
edited by Filippo Laurìa
on 2013/09/06 11:02
on 2013/09/06 11:02
Change comment:
There is no comment for this version
Summary
-
Page properties (4 modified, 0 added, 0 removed)
-
Attachments (0 modified, 6 added, 0 removed)
-
Objects (0 modified, 4 added, 0 removed)
Details
- Page properties
-
- Parent
-
... ... @@ -1,0 +1,1 @@ 1 +Getting Started - Author
-
... ... @@ -1,1 +1,1 @@ 1 -XWiki. filippolauria1 +XWiki.speery - Tags
-
... ... @@ -1,0 +1,1 @@ 1 +tutorials - Content
-
... ... @@ -1,5 +3,3 @@ 1 - 2 - 3 3 {{toc/}} 4 4 5 5 = Introduction = ... ... @@ -568,4 +568,4 @@ 568 568 569 569 Save the component and run the app. Go to [[http:~~/~~/192.168.0.102:52406/cgi-bin/WebObjects/BlogRest.woa/ra/blogEntries.html>>url:http://192.168.0.102:52406/cgi-bin/WebObjects/BlogRest.woa/ra/blogEntries.html||shape="rect"]] to get the list of posts, and you should see a link on the title. Click on it, and now you get the full details of the blog entry! 570 570 571 -The REST part of this tutorial is now complete, [[you can now move to the next part of the tutorial>>doc:Your First Framework]]. 569 +The REST part of this tutorial is now complete, [[you can now move to the next part of the tutorial>>doc:WEB.Home.Getting Started.Your First Framework.WebHome]].
- EOModeler.png
-
- Author
-
... ... @@ -1,0 +1,1 @@ 1 +XWiki.XWikiGuest - Size
-
... ... @@ -1,0 +1,1 @@ 1 +34.6 KB - Content
- author_list.png
-
- Author
-
... ... @@ -1,0 +1,1 @@ 1 +XWiki.XWikiGuest - Size
-
... ... @@ -1,0 +1,1 @@ 1 +8.4 KB - Content
- list.png
-
- Author
-
... ... @@ -1,0 +1,1 @@ 1 +XWiki.XWikiGuest - Size
-
... ... @@ -1,0 +1,1 @@ 1 +9.6 KB - Content
- list_wlock.png
-
- Author
-
... ... @@ -1,0 +1,1 @@ 1 +XWiki.XWikiGuest - Size
-
... ... @@ -1,0 +1,1 @@ 1 +11.1 KB - Content
- outline_tab.png
-
- Author
-
... ... @@ -1,0 +1,1 @@ 1 +XWiki.XWikiGuest - Size
-
... ... @@ -1,0 +1,1 @@ 1 +10.6 KB - Content
- relationship.png
-
- Author
-
... ... @@ -1,0 +1,1 @@ 1 +XWiki.XWikiGuest - Size
-
... ... @@ -1,0 +1,1 @@ 1 +23.2 KB - Content
- XWiki.XWikiComments[0]
-
- Author
-
... ... @@ -1,0 +1,1 @@ 1 +XWiki.franc - Comment
-
... ... @@ -1,0 +1,5 @@ 1 +In "Creating the EOModel" 2 + 3 +"You are now ready to save the model. Save it (File -> Save) ???? ( where is this ?) and close the **Entity Modeler** window. If you open the **Sources** in the main Eclipse window, you will notice that the **Sources** folder contains a package named **your.app.model**." 4 + 5 +Using a new Golipse install, should this automatic sources creation just work after saving the Model or is there something to configure before ? (Automatically run EOGenerator in WOLips is checked) - Date
-
... ... @@ -1,0 +1,1 @@ 1 +2012-05-23 17:14:53.92
- XWiki.XWikiComments[1]
-
- Author
-
... ... @@ -1,0 +1,1 @@ 1 +XWiki.cdvalverdeg - Comment
-
... ... @@ -1,0 +1,28 @@ 1 +**When i executed this: ** 2 + 3 +(% style="color: rgb(0,0,0);" %)//curl -X POST -v -d '{ "title": "First post", "content": "Some text", "author": { "firstName": "Pascal", "lastName": "Robert", "email": "[[(% style="color: rgb(0, 0, 0); color: rgb(0, 0, 0)" %)probert@macti.ca>>mailto:probert@macti.ca||shape="rect"]](%%)" } }' [[(% style="color: rgb(0, 0, 0); color: rgb(0, 0, 0)" %)http:~~/~~/127.0.0.1:60530~~/~~/cgi-bin/WebObjects/BlogRest.woa/ra/blgEntries.json>>url:http://127.0.0.1:60530//cgi-bin/WebObjects/BlogRest.woa/ra/blgEntries.json||shape="rect"]]// 4 + 5 +**And i get this message in terminal:** 6 + 7 +//* About to connect() to 127.0.0.1 port 60530 (#0)// 8 +//* Trying 127.0.0.1... connected// 9 +//* Connected to 127.0.0.1 (127.0.0.1) port 60530 (#0)// 10 +//> POST ~/~/cgi-bin/WebObjects/BlogRest.woa/ra/blgEntries.json HTTP/1.1// 11 +//> User-Agent: curl/7.19.7 (universal-apple-darwin10.0) libcurl/7.19.7 OpenSSL/0.9.8r zlib/1.2.3// 12 +//> Host: 127.0.0.1:60530// 13 +//> Accept: */*// 14 +//> Content-Length: 138// 15 +//> Content-Type: application/x-www-form-urlencoded// 16 +//> // 17 +//* HTTP 1.0, assume close after body// 18 +//< HTTP/1.0 400 Apple WebObjects// 19 +//< x-webobjects-loadaverage: 0// 20 +//< content-type: application/json// 21 +//< content-length: 53// 22 +//< // 23 +//A <b>Blg Entry</b> must have a <b>To Blg Author</b>.// 24 +//* Closing connection #0// 25 + 26 +(% style="line-height: 1.4285715;" %)**I'm new using ERRest and maybe i forgot to configure something.** 27 + 28 +**Any help would be appreciated.** - Date
-
... ... @@ -1,0 +1,1 @@ 1 +2013-07-04 19:53:39.835
- XWiki.XWikiComments[2]
-
- Author
-
... ... @@ -1,0 +1,1 @@ 1 +XWiki.cdvalverdeg - Comment
-
... ... @@ -1,0 +1,1 @@ 1 +I found the problem, "(% style="color: rgb(0,0,0);" %)//author//(%%)" is not the name of the relationship in my blog model - Date
-
... ... @@ -1,0 +1,1 @@ 1 +2013-07-05 13:23:14.677 - Reply To
-
... ... @@ -1,0 +1,1 @@ 1 +1
- XWiki.XWikiComments[3]
-
- Author
-
... ... @@ -1,0 +1,1 @@ 1 +XWiki.larean - Comment
-
... ... @@ -1,0 +1,8 @@ 1 +Hi, I am trying to run this example and I get an error message. In particular, I cannot use curl. I added the records manually and when I try to display them I get this on the console: 2 +\\ 3 + 4 +(% class="typ" %)Request(% class="pln" %) start (% class="kwd" %)for(% class="pln" %) URI (% class="pun" %)/(% class="pln" %)cgi(% class="pun" %)-(% class="pln" %)bin(% class="pun" %)/(% class="typ" %)WebObjects(% class="pun" %)/(% class="typ" %)BlogTutorial(% class="pun" %).(% class="pln" %)woa(% class="pun" %)/(% class="pln" %)ra(% class="pun" %)/(% class="pln" %)blogEntries(% class="pun" %).(% class="pln" %)json (% class="typ" %)Headers(% class="pun" %){(% class="pln" %)accept (% class="pun" %)=(% class="pln" %) (% class="pun" %)((% class="str" %)"*/*"(% class="pun" %));(% class="pln" %) host (% class="pun" %)=(% class="pln" %) (% class="pun" %)((% class="str" %)"127.0.0.1:45743"(% class="pun" %));(% class="pln" %) user(% class="pun" %)-(% class="pln" %)agent (% class="pun" %)=(% class="pln" %) (% class="pun" %)((% class="str" %)"curl/7.38.0"(% class="pun" %));(% class="pln" %) (% class="pun" %)}(% class="pln" %) (% class="pun" %)[(% class="lit" %)2015(% class="pun" %)-(% class="lit" %)8(% class="pun" %)-(% class="lit" %)14(% class="pln" %) (% class="lit" %)17(% class="pun" %):(% class="lit" %)20(% class="pun" %):(% class="lit" %)19(% class="pln" %) CEST(% class="pun" %)](% class="pln" %) (% class="pun" %)<(% class="typ" %)WorkerThread14(% class="pun" %)>(% class="pln" %) (% class="pun" %)<(% class="pln" %)er(% class="pun" %).(% class="pln" %)rest(% class="pun" %).(% class="pln" %)routes(% class="pun" %).(% class="typ" %)ERXRouteRequestHandler(% class="pun" %)>:(% class="pln" %) (% class="typ" %)Exception(% class="pln" %) (% class="kwd" %)while(% class="pln" %) handling action named (% class="str" %)"index"(% class="pln" %) on action (% class="kwd" %)class(% class="pln" %) (% class="str" %)"your.app.rest.controllers.BlogEntryController"(% class="pln" %) (% class="pun" %):(% class="pln" %)com(% class="pun" %).(% class="pln" %)webobjects(% class="pun" %).(% class="pln" %)foundation(% class="pun" %).(% class="typ" %)NSForwardException(% class="pln" %) (% class="pun" %)[(% class="pln" %)java(% class="pun" %).(% class="pln" %)lang(% class="pun" %).(% class="pln" %)reflect(% class="pun" %).(% class="typ" %)InvocationTargetException(% class="pun" %)](% class="pln" %) (% class="kwd" %)null(% class="pun" %):(% class="pln" %)java(% class="pun" %).(% class="pln" %)lang(% class="pun" %).(% class="pln" %)reflect(% class="pun" %).(% class="typ" %)InvocationTargetException(% class="pln" %) _ignoredPackages(% class="pun" %)::(% class="pln" %) (% class="pun" %)((% class="str" %)"com.webobjects"(% class="pun" %),(% class="pln" %) (% class="str" %)"java.applet"(% class="pun" %),(% class="pln" %) (% class="str" %)"java.awt"(% class="pun" %),(% class="pln" %) (% class="str" %)"java.awt.datatransfer"(% class="pun" %),(% class="pln" %) (% class="str" %)"java.awt.event"(% class="pun" %),(% class="pln" %) (% class="str" %)"java.awt.image"(% class="pun" %),(% class="pln" %) (% class="str" %)"java.beans"(% class="pun" %),(% class="pln" %) (% class="str" %)"java.io"(% class="pun" %),(% class="pln" %) (% class="str" %)"java.lang"(% class="pun" %),(% class="pln" %) (% class="str" %)"java.lang.reflect"(% class="pun" %),(% class="pln" %) (% class="str" %)"java.math"(% class="pun" %),(% class="pln" %) (% class="str" %)"java.net"(% class="pun" %),(% class="pln" %) (% class="str" %)"java.rmi"(% class="pun" %),(% class="pln" %) (% class="str" %)"java.rmi.dgc"(% class="pun" %),(% class="pln" %) (% class="str" %)"java.rmi.registry"(% class="pun" %),(% class="pln" %) (% class="str" %)"java.rmi.server"(% class="pun" %),(% class="pln" %) (% class="str" %)"java.security"(% class="pun" %),(% class="pln" %) (% class="str" %)"java.security.acl"(% class="pun" %),(% class="pln" %) (% class="str" %)"java.security.interfaces"(% class="pun" %),(% class="pln" %) (% class="str" %)"java.sql"(% class="pun" %),(% class="pln" %) (% class="str" %)"java.text"(% class="pun" %),(% class="pln" %) (% class="str" %)"java.util"(% class="pun" %),(% class="pln" %) (% class="str" %)"java.util.zip"(% class="pun" %))(% class="pln" %) (% class="typ" %)Headers(% class="pun" %){(% class="pln" %)cache(% class="pun" %)-(% class="pln" %)control (% class="pun" %)=(% class="pln" %) (% class="pun" %)((% class="str" %)"private"(% class="pun" %),(% class="pln" %) (% class="str" %)"no-cache"(% class="pun" %),(% class="pln" %) (% class="str" %)"no-store"(% class="pun" %),(% class="pln" %) (% class="str" %)"must-revalidate"(% class="pun" %),(% class="pln" %) (% class="str" %)"max-age=0"(% class="pun" %));(% class="pln" %) expires (% class="pun" %)=(% class="pln" %) (% class="pun" %)((% class="str" %)"Fri, 14-Aug-2015 15:20:19 GMT"(% class="pun" %));(% class="pln" %) content(% class="pun" %)-(% class="pln" %)type (% class="pun" %)=(% class="pln" %) (% class="pun" %)((% class="str" %)"text/html"(% class="pun" %));(% class="pln" %) content(% class="pun" %)-(% class="pln" %)length (% class="pun" %)=(% class="pln" %) (% class="pun" %)((% class="str" %)"9296"(% class="pun" %));(% class="pln" %) pragma (% class="pun" %)=(% class="pln" %) (% class="pun" %)((% class="str" %)"no-cache"(% class="pun" %));(% class="pln" %) x(% class="pun" %)-(% class="pln" %)webobjects(% class="pun" %)-(% class="pln" %)loadaverage (% class="pun" %)=(% class="pln" %) (% class="pun" %)((% class="str" %)"1"(% class="pun" %));(% class="pln" %) date (% class="pun" %)=(% class="pln" %) (% class="pun" %)((% class="str" %)"Fri, 14-Aug-2015 15:20:19 GMT"(% class="pun" %));(% class="pln" %) set(% class="pun" %)-(% class="pln" %)cookie (% class="pun" %)=(% class="pln" %) (% class="pun" %)();(% class="pln" %) (% class="pun" %)} 5 + 6 +{{code language="none"}}{{/code}} 7 + 8 +{{{}}} - Date
-
... ... @@ -1,0 +1,1 @@ 1 +2015-08-17 08:04:44.506