swagger-api / swagger-api/swagger-codegen
Sample code generation for C# with customized template.. no demo for it!!! (#1618)
Nobody has claimed this yet.
- Dominant language
- Mustache
- Stars
- 17.8k
- Forks
- 6k
- PR merge metrics
- No merged PRs in 30d
Description
We need sample code generation for our own template and how to create the template for C#.
Bug or feature request?
bug
Which Swagger-Editor version?
2.2.3
How did you install Swagger-Editor? |
downloaded the jar file
Which browser & version?
all browser
5.Which operating system?
windows 10
followed the below steps for sample.
Demonstration API definition
Step 1 :
java -jar swagger-codegen-cli.jar generate -i http://petstore.swagger.io/v2/swagger.json -l php -o "D:\SwaggerAPI"
java -jar swagger-codegen-cli.jar generate -i http://localhost:51148/swagger/docs/v1 -l csharp -o "D:\SwaggerAPI"
Step 2 :
java -jar swagger-codegen-cli.jar help generate
step 3 :
java -jar swagger-codegen-cli.jar config-help -l php
step 4:
browse and save it where you download the code @ step 1 to available at one folder.
http://petstore.swagger.io/v2/swagger.json
Step 5 :
java -jar swagger-codegen-cli.jar generate -i http://petstore.swagger.io/v2/swagger.json -l csharp -o "D:\SwaggerAPI"
we have followed the below url
https://github.com/swagger-api/swagger-codegen
from here ,cant able to understand .
https://github.com/swagger-api/swagger-codegen#making-your-own-codegen-modules
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 with the CLI commands in the report, especially generate and config-help, then read the linked “Making your own codegen modules” guide for the C# template workflow. Document a complete custom-template example and explain how to run it; the result should let a user reproduce sample C# generation without relying on undocumented steps.
Written by the indexing model from the issue text.
Assessment
- Tech stack
- csharp
- Domain
- documentation, tooling
- Issue type
- Documentation
- Difficulty
- 4/5
- Estimated time
- 3-5 days
- Activity status
- Stale
- Clarity
- Needs clarification
- Newbie friendliness
- 35/100