Hi Massimo, thank you for taking time to answer my question. It
probably does work, i am making a mistake. I have been following the
video tutorial you have online and i can get the GET queries to work
but not the post. This is the get request 
http://127.0.0.1:8000/myapp/api/get_person/1.json,
how would i make the POST request using the tutorial example?

Thanks in advance.

On Oct 13, 4:21 pm, Massimo Di Pierro <[email protected]>
wrote:
> What do you mean does not work. It should work.
>
> On Oct 13, 1:29 am, Anaconda <[email protected]> wrote:
>
>
>
>
>
>
>
> > I have been going through the video tutorial on this at "http://
> > vimeo.com/21133657" and i can get everything to work except the Post
> > requests. I may be calling it incorrectly in my browser, has anyone
> > done the tutorial and done it correctly?
>
> > @request.restful()
> > def manage_dog():
> >     def GET(id):
> >         dog = db.dog(id)
> >         return dog.as_dict() if person else None
> >     def POST(owner,name,info):
> >         return
> > db.dog.validate_and_insert(owner=owner,name=name,info=info)
> >     def DELETE(dog)
> >         del db.dog(dog)
> >         return dict()
> >     def PUSH(dog,info):
> >         db.dog[dog].update_record(info=info)
> >         return dict()
> >     return locals()

Reply via email to