{"id":19113849,"url":"https://github.com/wndrr/swaggerclientpowershellgenerator","last_synced_at":"2026-05-16T00:07:25.971Z","repository":{"id":104125421,"uuid":"207805422","full_name":"Wndrr/SwaggerClientPowershellGenerator","owner":"Wndrr","description":"This is a small powershell wrapper to make generating a C# client from a web-hosted swagger doc easier ","archived":false,"fork":false,"pushed_at":"2019-09-11T12:45:12.000Z","size":12863,"stargazers_count":0,"open_issues_count":0,"forks_count":0,"subscribers_count":2,"default_branch":"master","last_synced_at":"2025-01-03T06:11:46.743Z","etag":null,"topics":["csharp","swagger","swagger-codegen"],"latest_commit_sha":null,"homepage":null,"language":"PowerShell","has_issues":true,"has_wiki":null,"has_pages":null,"mirror_url":null,"source_name":null,"license":"wtfpl","status":null,"scm":"git","pull_requests_enabled":true,"icon_url":"https://github.com/Wndrr.png","metadata":{"files":{"readme":"README.md","changelog":null,"contributing":null,"funding":null,"license":null,"code_of_conduct":null,"threat_model":null,"audit":null,"citation":null,"codeowners":null,"security":null,"support":null,"governance":null,"roadmap":null,"authors":null,"dei":null,"publiccode":null,"codemeta":null}},"created_at":"2019-09-11T12:20:17.000Z","updated_at":"2019-09-11T12:45:14.000Z","dependencies_parsed_at":null,"dependency_job_id":"e73ecd17-762e-4ee0-b5db-97751dfe5212","html_url":"https://github.com/Wndrr/SwaggerClientPowershellGenerator","commit_stats":null,"previous_names":[],"tags_count":0,"template":false,"template_full_name":null,"repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/Wndrr%2FSwaggerClientPowershellGenerator","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/Wndrr%2FSwaggerClientPowershellGenerator/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/Wndrr%2FSwaggerClientPowershellGenerator/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/Wndrr%2FSwaggerClientPowershellGenerator/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/Wndrr","download_url":"https://codeload.github.com/Wndrr/SwaggerClientPowershellGenerator/tar.gz/refs/heads/master","host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":240170064,"owners_count":19759143,"icon_url":"https://github.com/github.png","version":null,"created_at":"2022-05-30T11:31:42.601Z","updated_at":"2022-07-04T15:15:14.044Z","host_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub","repositories_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories","repository_names_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repository_names","owners_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners"}},"keywords":["csharp","swagger","swagger-codegen"],"created_at":"2024-11-09T04:39:16.989Z","updated_at":"2026-05-16T00:07:18.935Z","avatar_url":"https://github.com/Wndrr.png","language":"PowerShell","funding_links":[],"categories":[],"sub_categories":[],"readme":"# SwaggerClientPowershellGenerator\nThis is a small powershell wrapper to make generating a C# client from a web-hosted swagger doc easier \n\nThis tool is simple to use, but very restrictive. It is a wrapper aroung the original java swagger-codegen utility meant to hide away some of the boilerplate necessary to run it. But, since I'm lazy, I only added the functionality that I needed to use right away ... Pull requests are always welcome.\n\n## What it does\nThis utility script requires three parameters: \n- The path to the output folder for the generated swagger client\n- The URL to the web-hosted swagger document\n- The URL to the swagger-codegene java utility\n\nThe first and third parameters can be specified as either absolute or relative file path and must represent the full path, including location and name of the file.\n\nRunning this tool will create a complete project, `.csproj` included.\n\n## Usage\n\nTo change the name of the generated project, update the `config.json` file.\n\n``` Powershell\n// Include generator class\n. \"absolute/path/to/SwaggerClientGenerator.ps1\"\n// Instanciate utility classe\n$SwaggerGenerator = [SwaggerGenerator]::new(\"path/to/output/folder\", \"https://url-to-swagger.doc\", \"path/to/swagger/codegen/tool\");\n// Run generator\n$SwaggerGenerator.Generate();\n ```\n ## Example\n \nYou can find a pre-build execution script names `ExampleExecution.ps1`. In this script you will only need to change the path used to include the `SwaggerClientGenerator.ps1` script because I couldn't be bother to findout how to include a script through a relative path.\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fwndrr%2Fswaggerclientpowershellgenerator","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fwndrr%2Fswaggerclientpowershellgenerator","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fwndrr%2Fswaggerclientpowershellgenerator/lists"}