Skip to content

feat: expose method source in API discovery - #1004

Merged
surajshetty3416 merged 1 commit into
frappe:developfrom
ankush:feat/expose-discovery-source
Oct 28, 2026
Merged

surajshetty3416 merged 1 commit into
frappe:developfrom
ankush:feat/expose-discovery-source

Conversation

@ankush

@ankush ankush commented Oct 28, 2026

Copy link
Copy Markdown
Member

Set the expose_discovery_source hook. The API discovery endpoints (/api/v2/discovery/...) then show the source code of the whitelisted methods of this app.

This helps API clients, such as AI agents, to understand what a method does. The app is open source, thus it is safe to show the source.

Ref: frappe/frappe#40757

🤖 Generated with Claude Code

Set the expose_discovery_source hook. The API discovery endpoints then show the source code of whitelisted methods of this app. This helps API clients, such as AI agents, to understand what a method does. The app is open source, thus it is safe to show the source.

Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
@codecov

codecov Bot commented Oct 28, 2026

Copy link
Copy Markdown

Codecov Report

✅ All modified and coverable lines are covered by tests.
✅ Project coverage is 81.02%. Comparing base (88ff5ac) to head (cf82070).

Additional details and impacted files
@@             Coverage Diff             @@
##           develop    #1004      +/-   ##
===========================================
+ Coverage    81.01%   81.02%   +0.01%     
===========================================
  Files           66       66              
  Lines         7136     7137       +1     
===========================================
+ Hits          5781     5783       +2     
+ Misses        1355     1354       -1     

☔ View full report in Codecov by Harness.
📢 Have feedback on the report? Share it here.

🚀 New features to boost your workflow:
  • ❄️ Test Analytics: Detect flaky tests, report on failures, and find test suite problems.
  • 📦 JS Bundle Analysis: Save yourself from yourself by tracking and limiting bundle sizes in JS merges.

@surajshetty3416
surajshetty3416 merged commit e9a6ac4 into frappe:develop Oct 28, 2026
9 of 10 checks passed
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants