swagger-api / swagger-api/swagger-codegen
Expand swagger generated endpoints with actual possible endpoint
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
First steps
- Read the whole issue, then the project's contributing guide.
- Comment on the issue to say you are picking it up — it saves two people doing the same work.
- Fork the repository and make your change on a branch.
- 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