OpenFeign / OpenFeign/feign

Support named parameter resolution using POJO

Open
#830 1 comment 0 reactions 0 assignees View on GitHub

Nobody has claimed this yet.

feign-12 proposal waiting for votes
Dominant language
Java
Stars
9.8k
Forks
1.9k
Avg merge
1d 2h
Merged PRs (30d)
41

Description

Regard following snippet, is there any way to support POJO for restful get method? Thanks.

current sample

@RequestLine("GET /repos/{owner}/{repo}/contributors")
List<Contributor> contributors(@Param("owner") String owner, @Param("repo") String repo);

expect

@RequestLine("GET /repos/{owner}/{repo}/contributors")
List<Contributor> contributors(@SomeHow Foo foo);

Foo class define

public class Foo {
   private String owner;
   private String repo;
}

Contributor guide

Open the contributing guide

First steps

  1. Read the whole issue, then the project's contributing guide.
  2. Comment on the issue to say you are picking it up — it saves two people doing the same work.
  3. Fork the repository and make your change on a branch.
  4. Open a pull request that references the issue number.

Research direction

No repository files or tests are named. Start by tracing Feign's existing @Param handling for @RequestLine methods and how method arguments are resolved. Done means a POJO such as Foo can supply the owner and repo path parameters for the shown GET method, with coverage for the new behavior.

Written by the indexing model from the issue text.

Assessment

Tech stack
java
Domain
api
Issue type
Feature
Difficulty
4/5
Estimated time
3-5 days
Activity status
Stale
Clarity
Mostly clear
Newbie friendliness
35/100

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.