OpenFeign / OpenFeign/feign

Non HttpMethod in feignClient Interface

Open
#1,437 0 comments 0 reactions 0 assignees View on GitHub

Nobody has claimed this yet.

proposal
Dominant language
Java
Stars
9.8k
Forks
1.9k
Avg merge
1d 2h
Merged PRs (30d)
41

Description

Hello,

I have been using @FeignClient annotation on the interface to connect to multiple REST clients but now i have a requirement to a add a non-http method in the interface, which throws a runtime exception

exception: method not annotated with HTTP method type (ex. GET, POST)

is their a way to achieve this.

PS: i am looking at this to inject a CircuitBreakerRegistry in the interface, which can be utilized in the fallback methods.

Thank You

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

Begin with the @FeignClient annotation, the reported exception, and the fallback-method/CircuitBreakerRegistry use case. Done means the requested non-HTTP interface method has a defined supported path or an explicit limitation with corresponding guidance.

Written by the indexing model from the issue text.

Assessment

Tech stack
java
Domain
api
Issue type
Feature
Difficulty
5/5
Estimated time
Over a week
Activity status
Stale
Clarity
Needs clarification
Newbie friendliness
20/100

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.