Hello,
I’m on v13.
I can get a list of “name” when I call GET on /api/resource/user. No problem.
Now, other than “Administrator”, all names are in the format of email address.
From Introduction, if I want to get all the details in user “Administrator”, or “first.last@yahoo.com”, I think I need to use:
/api/resource/user/Administrator
/api/resource/user/first.last@yahoo.com
But I get:
{
“exception”: “ImportError: user”,
“exc”: “["Traceback (most recent call last):\n File \"apps/frappe/frappe/app.py\", line 66, in application\n response = frappe.api.handle()\n File \"apps/frappe/frappe/api.py\", line 78, in handle\n doc = frappe.get_doc(doctype, name)\n File \"apps/frappe/frappe/init.py\", line 1079, in get_doc\n doc = frappe.model.document.get_doc(*args, **kwargs)\n File \"apps/frappe/frappe/model/document.py\", line 77, in get_doc\n controller = get_controller(doctype)\n File \"apps/frappe/frappe/model/base_document.py\", line 78, in get_controller\n return _get_controller()\n File \"apps/frappe/frappe/model/base_document.py\", line 74, in _get_controller\n raise ImportError(doctype)\nImportError: user\n"]”
}
How do I make the API call please?