i am using the following controller can any one tell me how to pass the 
value in URL to insert the data in database i am trying :

http://127.0.0.1:8000/myapp/api/get_person/?owner=sanjeet&name=roy&info=bangalore

it gives the invalid argument can anyone tell me how i pass the valid 
argument to insert in database



@request.restful()
def get_person():
    def GET(id):
        person = db.person(id)
        return person.as_dict() if person else None
    def POST(owner,name,info):
        return db.dog.validate_and_insert(owner=owner,name=name,info=info)
    return locals()

Reply via email to