Skip to content

Add GET /ui/connections/hook_meta/{connection_type} endpoint#63650

Closed
yuseok89 wants to merge 6 commits intoapache:mainfrom
yuseok89:hook-meta-per-type
Closed

Add GET /ui/connections/hook_meta/{connection_type} endpoint#63650
yuseok89 wants to merge 6 commits intoapache:mainfrom
yuseok89:hook-meta-per-type

Conversation

@yuseok89
Copy link
Contributor

Related: #61815

Add a new endpoint that returns metadata for a single connection type.
Unlike the existing GET /ui/connections/hook_meta which imports all hook classes (~129) to build the full list, this endpoint uses ProvidersManager._hooks_lazy_dict to import only the requested hook, significantly reducing response time for on-demand metadata lookup.
This is the first step toward improving the Add Connection page load time — load connection types first (lightweight), then load metadata only when the user selects a type.

Screenshots

Tested via curl in Breeze shell:
image


Was generative AI tooling used to co-author this PR?
  • Yes (please specify the tool below)
    • Cursor

  • Read the Pull Request Guidelines for more information. Note: commit author/co-author name and email in commits become permanently public when merged.
  • For fundamental code changes, an Airflow Improvement Proposal (AIP) is needed.
  • When adding dependency, check compliance with the ASF 3rd Party License Policy.
  • For significant user-facing changes create newsfragment: {pr_number}.significant.rst, in airflow-core/newsfragments. You can add this file in a follow-up commit after the PR is created so you know the PR number.

@yuseok89
Copy link
Contributor Author

The approach has changed. I'm closing this PR in favor of using provider.yaml metadata instead of adding new APIs. See the new implementation in #63826.

@yuseok89 yuseok89 closed this Mar 18, 2026
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

area:API Airflow's REST/HTTP API

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant