Skip to content

Support JSON Pointer in @HttpExchange interface #28576

@quaff

Description

@quaff

Sometimes we need extract data from child node instead of root document.
For example get index mappings from ElasticSearch:

@HttpExchange("http://localhost:9200")
public interface ElasticSearchIndexOperations {

	@GetExchange("/{index}/_mapping")
	@JsonPointer("/${index}/mappings")
	Mappings getMapping(@PathVariable String index);

 }

NOTE: placeholders in @JsonPointer("/${index}/mappings") need to be resolved base on method parameters.

Metadata

Metadata

Assignees

No one assigned

    Labels

    in: webIssues in web modules (web, webmvc, webflux, websocket)type: enhancementA general enhancement

    Type

    No type

    Projects

    No projects

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions