Auto-generates CRUD APIs for DocTypes and syncs them to Postman collections.
bench --site your-site install-app frappe_postman_sync
bench --site your-site migrate-
Configure Postman Settings:
- Search "Postman Setting" in Frappe Desk
- Add your Postman API credentials (API Key, Workspace ID, Collection ID)
- Enable auto-sync
-
Generate APIs:
- Automatic: Create any DocType → APIs auto-generated
- Manual: Use API Generator for specific DocTypes or entire modules
# Generate APIs for a single DocType and sync to Postman
bench --site your-site execute frappe_postman_sync.generate_doctype_apis --args '["User"]'
# Generate APIs for an entire module and sync to Postman
bench --site your-site execute frappe_postman_sync.generate_module_apis --args '["QuickNotes"]'# Make executable (one-time setup)
chmod +x postman-sync
# Generate APIs for DocType
./postman-sync --site your-site --doctype "User"
# Generate APIs for module
./postman-sync --site your-site --module "QuickNotes"For each DocType:
GET /api/resource/{DocType}- List recordsGET /api/resource/{DocType}/{name}- Get specific recordPOST /api/resource/{DocType}- Create recordPUT /api/resource/{DocType}/{name}- Update recordDELETE /api/resource/{DocType}/{name}- Delete record- Plus any
@frappe.whitelist()methods found automatically
Authorization: token your_api_key_hereRequired Postman credentials:
- API Key: Get from Postman
- Workspace ID: From workspace URL
- Collection ID: From collection URL
MIT