It's not clear from the book. but will a piece of code like :

"""
from gluon.tools import Service
service = Service()

def call():
    session.forget()
    return service()

@service.json
def submit(body, age, gender):
    unique_id = insert_into_my_db(body, age, gender)
    return dict(unique_id=unique_id)

"""

work with a POST request.  I know and have tested it with a get
request and it works swimmingly, but I'm wondering if it will work
with POST.

Reply via email to