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
[{"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@hidden","firstName":"ted","lastName":"petro"}}]
add some authors and posts. Your example is working.
from safari
[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
[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@hidden> 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@hidden> wrote:
Do not post admin requests to the list. They will be ignored.
Webobjects-dev mailing list (email@hidden)
Help/Unsubscribe/Update your Subscription:
This email sent to email@hidden