Hi Massimo,

Yep, I tried all the combinations. When I set patterns to "auto" and
go to http://127.0.0.1/myapp/default/api/patterns, no "all" pattern
even appears.

In my simple case, I have a single table called "task" with two
fields: name and description. A pattern of "auto" generates two
expressions; the output is ['/task/id/{task.id}', '/task/id/
{task.id}/:field']. None of that looks like listing all task rows. If
I manually add a pattern equal to "/task[task]" and navigate to it, I
get the "no matching pattern" error. Not sure where to go from there.

On Nov 29, 1:37 am, Massimo Di Pierro <massimo.dipie...@gmail.com>
wrote:
> Have you tried
>
> http://127.0.0.1/myapp/default/api/person.json
>
> without the "s"
>
> On Nov 28, 5:19 am, Oliver Lade <piemaste...@gmail.com> wrote:
>
>
>
>
>
>
>
> > I've been following the documentation regarding RESTful web services
> > (very cool), and it mostly works except for one annoying thing. Every
> > time I try a URL that's supposed to match the whole table and return
> > all results (e.g.http://127.0.0.1/myapp/default/api/persons.jsonin
> > the example) I get an error message saying "no matching pattern". This
> > happens both copying the example patterns, using auto  patterns, and
> > when trying my own patterns (in my case "/task[task]" should get all
> > rows of the db.task table, but no luck 
> > athttp://127.0.0.1:8000/myapp/default/api/task;
> > specifying an ID returns an individual result however).
>
> > Any idea what might be causing this? Running web2py v1.99.2
> > (2011-09-26 06:55:33) stable on Windows 7 x64, using the standard
> > Rocket 1.2.4 and SQLite DBs.

Reply via email to