swagger-api / swagger-api/swagger-codegen

Provision for @RequestMapping in Spring API template - OPEN API 3.0

Open
#9,771 1 comment 2 reactions 0 assignees View on GitHub

Nobody has claimed this yet.

Dominant language
Mustache
Stars
17.8k
Forks
6k
PR merge metrics
No merged PRs in 30d

Description

Issue is similar to the one reported in "[Spring] Fixes #5244 Include basePath @RequestMapping in Spring API template " (https://github.com/swagger-api/swagger-codegen/pull/8131)

For OPEN API 3.0 using swagger code generator do we have facility to define basepath and get it mapped to @RequestMapping in api.mustache file?

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 with the Spring API template in api.mustache and compare the requested OpenAPI 3.0 behavior with the approach described in PR #8131. Confirm how the base path is represented in the OpenAPI definition and whether the generated @RequestMapping should include it; done means the template produces the expected mapping for an OpenAPI 3.0 input.

Written by the indexing model from the issue text.

Assessment

Tech stack
openapi, spring
Domain
api, backend-api-design
Issue type
Feature
Difficulty
3/5
Estimated time
1-2 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.