swagger-api / swagger-api/swagger-codegen

Expand swagger generated endpoints with actual possible endpoint

Open
#10,291 1 comment 0 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

Description

I am currently use Swagger to expose all my endpoints, but these endpoints are currently formatted as: /get/{name}, /put/{name}, where the name can only be those names which I have in database?

Is somehow possible to make swagger expand the general API definition to contain all possible API call one could make, meaning all possible names?

I tried the answer suggested here stackoverflow

But cannot seem to connect to my database in the middleware?

Is this even possible, og are the modifiers only be used for modifying the autogenerated swagger endpoints manually?

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 reviewing the issue's linked Stack Overflow answer and the Swagger/OpenAPI representation of parameterized paths. Determine whether database-backed expansion into all possible names is supported; done means a documented supported approach or a clear explanation of the limitation.

Written by the indexing model from the issue text.

Assessment

Tech stack
openapi
Domain
api, documentation
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.