swagger-api / swagger-api/swagger-codegen
Advice - Adding functionality to generated SDK's
Nobody has claimed this yet.
- Dominant language
- Mustache
- Stars
- 17.8k
- Forks
- 6k
- PR merge metrics
- No merged PRs in 30d
Description
I want to add functionality to the generated SDK's. Obviously I can add this into the templates and build my own swagger service, but I also wish to keep it up to date with at least the major swagger releases.
This is custom business logic, for example, extra methods to get an API key from a web login etc.
We support Java, JS, PHP
Does anyone have any advice on a nice way to do this? If not, how a feature to do this might look and and I can look into contributing it.
I guess one main problem is that every language may do this differently, if some kind of dependency is used.
Anyway, may be an interesting discussion!
Thanks!
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
The issue discusses adding custom business logic to generated SDK templates for Java, JavaScript, and PHP, but names no files or tests. Start by reviewing the generator templates and language-specific outputs; a contribution would require a settled extension design and clear acceptance criteria.
Written by the indexing model from the issue text.
Assessment
- Tech stack
- java, javascript, php
- Domain
- tooling
- Issue type
- Feature
- Difficulty
- 5/5
- Estimated time
- Over a week
- Activity status
- Stale
- Clarity
- Needs clarification
- Newbie friendliness
- 25/100