Skip to content

http: add endpoint mapping processor #45

Description

@burakkoken

What problem would this feature solve?

Components implementing http.EndpointConfigurer are not currently detected or invoked automatically.

As a result, their endpoint mappings are not collected and registered by the framework.

What would you like to see?

Add an endpoint mapping processor that detects components implementing http.EndpointConfigurer, calls their ConfigureEndpoints method, and collects the resulting handler mappings.

For example:

type EndpointConfigurer interface {
	ConfigureEndpoints(endpoints Endpoints)
}

The processor should:

  • find all components implementing http.EndpointConfigurer
  • call ConfigureEndpoints during HTTP setup
  • collect/register the produced handler mappings
  • make those mappings available to the HTTP server/router

What alternatives have you considered?

No response

Additional context

This would make endpoint registration extensible and allow components to contribute HTTP mappings in a framework-managed way.

Metadata

Metadata

Assignees

Labels

enhancementNew feature or request

Fields

No fields configured for Feature.

Projects

No projects

Milestone

No milestone

Relationships

None yet

Development

No branches or pull requests

Issue actions