How to programmatically retrieve all ERPNext API endpoints with full DocType metadata, fields, permi

Issue:
ERPNext does not provide a built-in way to list all API endpoints along with their full metadata. This makes it difficult to know the input/output structure, fields, permissions, and standard CRUD URLs for every DocType.

What I Need:
A method or script to programmatically retrieve all ERPNext API endpoints with their DocType metadata, including fields (type, default, options, mandatory, unique, description), permissions (roles and access rights), and standard CRUD paths (list, create, read, update, delete) so I can generate a complete API reference or documentation.

1 Like

Try commit - it has a database ERD viewer and lists all whitelisted endpoints available in popular Frappe apps.

1 Like