Not able to make embedded option work

10 views
Skip to first unread message

vipin...@gmail.com

unread,
May 13, 2019, 3:24:08 AM5/13/19
to Eve REST Framework
Hello

I have tried the simplest of the example at eve_sqlalchemy/examples/simple but I am not able to make embedded option work

http://127.0.0.1:5000/invoices/1?embedded={"people":1}

results in:


{
"people": 1,
"id": 1,
"number": 42,
"_updated": "Mon, 13 May 2019 07:08:40 GMT",
"_created": "Mon, 13 May 2019 07:08:40 GMT",
"_etag": "b9273526658d053153f58c766bbafd915f941d16",
"_links": {
"parent": {
"title": "home",
"href": "/"
},
"self": {
"title": "Invoice",
"href": "invoices/1"
},
"collection": {
"title": "invoices",
"href": "invoices"
}
}
}

I was hoping it would resolve people object instead of it giving its id

I would appreciate any help

Regards
Vipin

Reply all
Reply to author
Forward
0 new messages