{"id":19100938,"url":"https://github.com/dmitry-pavlov/openapi-connected-service","last_synced_at":"2025-04-18T18:31:09.868Z","repository":{"id":34460872,"uuid":"164000756","full_name":"dmitry-pavlov/openapi-connected-service","owner":"dmitry-pavlov","description":"Visual Studio extension to generate OpenAPI (Swagger) web service reference.","archived":false,"fork":false,"pushed_at":"2022-12-08T04:44:44.000Z","size":2241,"stargazers_count":67,"open_issues_count":9,"forks_count":16,"subscribers_count":5,"default_branch":"master","last_synced_at":"2023-06-04T23:00:39.460Z","etag":null,"topics":["nswag","openapi","openapi-codegen","visual-studio","visual-studio-extension","vsix","vsix-extensions"],"latest_commit_sha":null,"homepage":"https://marketplace.visualstudio.com/items?itemName=dmitry-pavlov.OpenAPIConnectedService","language":"C#","has_issues":true,"has_wiki":null,"has_pages":null,"mirror_url":null,"source_name":null,"license":null,"status":null,"scm":"git","pull_requests_enabled":true,"icon_url":"https://github.com/dmitry-pavlov.png","metadata":{"files":{"readme":"README.MD","changelog":null,"contributing":null,"funding":".github/FUNDING.yml","license":null,"code_of_conduct":null,"threat_model":null,"audit":null,"citation":null,"codeowners":null,"security":null,"support":null},"funding":{"github":null,"patreon":null,"open_collective":null,"ko_fi":"dmitry_pavlov","tidelift":null,"community_bridge":null,"liberapay":"dmitry-pavlov","issuehunt":null,"otechie":null,"custom":"https://paypal.me/dmitrycodingmachine"}},"created_at":"2019-01-03T17:04:08.000Z","updated_at":"2022-11-16T02:47:17.000Z","dependencies_parsed_at":"2023-01-15T07:13:41.150Z","dependency_job_id":null,"html_url":"https://github.com/dmitry-pavlov/openapi-connected-service","commit_stats":null,"previous_names":[],"tags_count":null,"template":null,"template_full_name":null,"repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/dmitry-pavlov%2Fopenapi-connected-service","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/dmitry-pavlov%2Fopenapi-connected-service/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/dmitry-pavlov%2Fopenapi-connected-service/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/dmitry-pavlov%2Fopenapi-connected-service/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/dmitry-pavlov","download_url":"https://codeload.github.com/dmitry-pavlov/openapi-connected-service/tar.gz/refs/heads/master","host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":223783094,"owners_count":17201905,"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":["nswag","openapi","openapi-codegen","visual-studio","visual-studio-extension","vsix","vsix-extensions"],"created_at":"2024-11-09T03:53:04.320Z","updated_at":"2025-04-18T18:31:09.861Z","avatar_url":"https://github.com/dmitry-pavlov.png","language":"C#","funding_links":["https://ko-fi.com/dmitry_pavlov","https://liberapay.com/dmitry-pavlov","https://paypal.me/dmitrycodingmachine","https://www.buymeacoffee.com/dmitrypavlov"],"categories":["others"],"sub_categories":[],"readme":"[OpenAPI (Swagger) Connected Service](https://marketplace.visualstudio.com/items?itemName=dmitry-pavlov.OpenAPIConnectedService) is a Visual Studio extension to generate `C#` `HttpClient` code for `OpenAPI` (formerly [`Swagger API`](https://swagger.io/docs/specification/about/)) web service with [NSwag](https://github.com/RSuter/NSwag)\n\nSimply put, it is like `Add Service Reference` for `WCF` or `Add Web Reference` for `WSDL`, but for `JSON` `API`.\n\n# Getting Started\n\nInstall from `Tools -\u003e Extensions and Updates` menu inside Visual Studio or [download](https://marketplace.visualstudio.com/items?itemName=dmitry-pavlov.OpenAPIConnectedService)  as `VSIX` package from Visual Studio Marketplace\n\n![Adding OpenAPI (Swagger) Connected Service from Visual Studio Marketplace](docs/img/OpenAPI-Swagger-Connected-Service.gif)\n\n# HowTos\n- [ ] How to open *.nswag files with NSwagStudio from Solution Explorer\n- [x] [How to add generated HttpClient to ASP.NET Core dependency injection (DI)](docs/How-to-Add-Generated-HttpClient-to-ASPNETCore-Dependency-Injection.MD)\n\n# Troubleshooting\n## Generated code compilation errors\nIf your project target framework is `net461` you might need to add the following packages via [`NuGet Package Manager`](https://docs.microsoft.com/en-us/nuget/tools/package-manager-ui):\n  - [`Newtonsoft.Json`](https://www.nuget.org/packages/Newtonsoft.Json/)\n  - [`System.Net.Http`](https://www.nuget.org/packages/System.Net.Http/)\n  - [`System.Runtime.Serialization.Json`](https://www.nuget.org/packages/System.Runtime.Serialization.Json/)\n## Can't open .nswag file in NSwagStudio\n  - If generated code corrupted, try to open `.nswag` file in [`NSwagStudio`](https://github.com/RSuter/NSwag/wiki/NSwagStudio) (Windows GUI for editing .*nswag files). \n- If it doesn't open, try to create new `.nswag` file in [`NSwagStudio`](https://github.com/RSuter/NSwag/wiki/NSwagStudio) for the same API service link and check the differences.\n- If you found bug, please report it [here](https://github.com/dmitry-pavlov/openapi-connected-service/issues/new?title=BUG). Thank you in advance!\n\n# Roadmap\nSee the [changelog](docs/CHANGELOG.MD) for the further development plans and version history.\n\n# Feedback\nPlease feel free to [request a feature](https://github.com/dmitry-pavlov/openapi-connected-service/issues/new?title=FEATURE) or [report a bug](https://github.com/dmitry-pavlov/openapi-connected-service/issues/new?title=BUG).\n\n# Support Development\nJust consider [buying me a coffee](https://www.buymeacoffee.com/dmitrypavlov). Thank you for your support!","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fdmitry-pavlov%2Fopenapi-connected-service","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fdmitry-pavlov%2Fopenapi-connected-service","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fdmitry-pavlov%2Fopenapi-connected-service/lists"}