So I'm trying to connect an android application to my web2py website back end database by using json remote procedure calls.
Currently, I am trying to make a simple test function to remotely add entries in the db.
Additionally, I am running on GAE.
What I have right now is:
db.py
db.define_table('testing',
Field('number_sum','string'),
)
default.py
def call():
return service()
@service.jsonrpc
def test_add(a,b):
sum = a+b
db.testing.insert(numer_sum=sum)
return a+b
when I run the following in terminal,
curl
http://domain/app/default/call/run/test_add?a=3&b=4I receive an "Object does not exist" error.
Any help would be appreciated!
-Trevor