I imported your tutorial, ran it and I got the same message. So I found the rest tutorial on the wiki.
I think you need to add some data to your database. I would recommend that you follow the instructions that follow "Adding posts and authors with curl". you need posts!! I added an author and a post and followed the instructions curl -X GET http://127.0.0.1:52169/cgi-bin/WebObjects/BlogRest.woa/ra/blogEntries.json [{"id":1,"type":"BlogEntry","content":"some content here and now","creationDate":"2014-03-31T11:18:02Z","lastModified":"2014-03-31T11:18:02Z","title":"first blog","author":{"id":1,"type":"Author","email":"[email protected]","firstName":"ted","lastName":"petro"}}] add some authors and posts. Your example is working. from safari http://127.0.0.1:52169/cgi-bin/WebObjects/BlogRest.woa/ra/blogEntries.html [NSMutableArray [BlogEntry id=1 type=BlogEntry [content=some content here and now] [creationDate=2014-03-31 15:18:02 Etc/GMT] [lastModified=2014-03-31 15:18:02 Etc/GMT] [title=first blog] [author id=1 type=Author [[email protected]] [firstName=ted] [lastName=petro] ] ] ] and this is from your blogRest tutorial. I did no editing. Ted On Mar 31, 2014, at 9:47 AM, Fred Opims <[email protected]> wrote: > Hi Bogdan! > Thank you for response. > I’ve put ERXRest.striMode=false, and i have the following message. > Request failed: /cgi-bin/WebObjects/BlogRest.woa, There is no route for the > path ''. > > I’m adding some route as mentioned in the tutorial, but still have the same > message. > I’m following the tutorial step by step and i can’t go further than section > “Adding HTML Views for blogs post". > Do i need to do something else ? > I’ve attached the code i did so far. > > Thank you very much > > <BlogRest.zip> > > > On Mar 31, 2014, at 8:20 AM, "Bogdan Zlatanov" <[email protected]> > wrote: > >> Hello, >> >> It looks like you are trying to call an unknown action. There should be a >> stack trace, following the "ERROR er.rest.routes.ERXRouteController - >> Request failed: /cgi-bin/WebObjects/BlogRest.woa, 405." message, which >> should point you in the right direction. >> >> If not, try running the application with ERXRest.strictMode=false. You >> should get a FileNotFoundException with a bit more details on what that >> unknown method is. >> >> Cheers, >> Bogdan Zlatanov >> >> On Mon, 31 Mar 2014 08:59:45 +0200, dev <[email protected]> wrote: >> >> Hello! >> I’m beginning on webObject and i have one basic question about ERRest. >> I’m following the instructions given on My first Rest Project but i always >> have the following error message: >> ERROR er.rest.routes.ERXRouteController - Request failed: >> /cgi-bin/WebObjects/BlogRest.woa, 405. >> I’m able to run successfully BlogDemo or BlogRest samples available on >> github but when i try to create a new ERREst project, i’m always having this >> message. >> Do you have an idea how to fix it ? >> >> Thank you! >> Best >> >> >> > _______________________________________________ > Do not post admin requests to the list. They will be ignored. > Webobjects-dev mailing list ([email protected]) > Help/Unsubscribe/Update your Subscription: > https://lists.apple.com/mailman/options/webobjects-dev/tedpet5%40yahoo.com > > This email sent to [email protected]
_______________________________________________ Do not post admin requests to the list. They will be ignored. Webobjects-dev mailing list ([email protected]) Help/Unsubscribe/Update your Subscription: https://lists.apple.com/mailman/options/webobjects-dev/archive%40mail-archive.com This email sent to [email protected]
