swagger-api / swagger-api/swagger-codegen

Create interfaces instead of abstract classes for JAX-RS

Open
#2,672 3 comments 1 reaction 0 assignees View on GitHub

Nobody has claimed this yet.

Enhancement: General help wanted Server: Java
Dominant language
Mustache
Stars
17.8k
Forks
6k
PR merge metrics
No merged PRs in 30d

Description

The generated service api are based on abstract classes, not interface. We all know that abstract class is something to avoid in Java, and interface provides much more flexibility. So please make the generated codes interfaces instead of abstract classes

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

Start by locating the JAX-RS templates that generate service APIs and inspect the current abstract-class output. Compare the generated result with the requested interface-based design, then verify that the generated Java service API remains valid and compatible.

Written by the indexing model from the issue text.

Assessment

Tech stack
java
Domain
api, backend
Issue type
Refactor
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.