ERPNext Conference 2019* ERPNext.com Blog

ERPNext/Frappe REST API doubt

api
developer
rest-api

#1

When requesting a resource e.g Project, requesting child table in fields throws an error e.g /Project?field=[“tasks”] (Project is a parent doctype of Task) but when requesting a particular project /Project/ProjectName all of its tasks and other child doctypes (like users) are returned.

Shouldn’t field parameter also support fields which are child doctypes in relation to the requested resource doctype ? If not, then any particular reason ?


#2

Hi,

Would appreciate if someone can guide on this.

Thanks,
Palash


#3

Hi,

I have same doubt.


#4

Please explain your doubt, will try to resolve.