Hi all,

I'm creating a rest interface and I'd like to do something like:

URL: /pets/default/api/pets
RESULT: [
{name: 'Ramo',
animal: 'dog',
owner: 'http://server:port/pets/default/api/owners/15'}
]

but instead it keeps returning in the format of
[
{name: 'Ramo',
animal: 'dog',
owner: 15}
]

I'm using the 'format' parameter on the field 'owner' of the table 'pet', 
but when rendering json, it doesn't seem to listen to it. Is it possible to 
do so? Am I doing something wrong?

-- 

--- 
You received this message because you are subscribed to the Google Groups 
"web2py-users" group.
To unsubscribe from this group and stop receiving emails from it, send an email 
to web2py+unsubscr...@googlegroups.com.
For more options, visit https://groups.google.com/groups/opt_out.


Reply via email to