File tree Expand file tree Collapse file tree 5 files changed +75
-5
lines changed Expand file tree Collapse file tree 5 files changed +75
-5
lines changed Original file line number Diff line number Diff line change 1- {
2- "version" : 1 ,
3- "isRoot" : true ,
4- "tools" : {}
1+ {
2+ "version" : 1 ,
3+ "isRoot" : true ,
4+ "tools" : {
5+ "swashbuckle.aspnetcore.cli" : {
6+ "version" : " 6.1.5" ,
7+ "commands" : [
8+ " swagger"
9+ ]
10+ }
11+ }
512}
Original file line number Diff line number Diff line change 1+ {
2+ "singleQuote" : true ,
3+ "tabWidth" : 2 ,
4+ "printWidth" : 80 ,
5+ "useTabs" : false ,
6+ "overrides" : [
7+ {
8+ "files" : " *.md" ,
9+ "options" : {
10+ "tabWidth" : 2
11+ }
12+ },
13+ {
14+ "files" : " *.yml" ,
15+ "options" : {
16+ "tabWidth" : 2
17+ }
18+ }
19+ ]
20+ }
Original file line number Diff line number Diff line change 1+ {
2+ "recommendations" : [
3+ " EditorConfig.EditorConfig" ,
4+ " ms-dotnettools.csharp" ,
5+ " streetsidesoftware.code-spell-checker" ,
6+ " esbenp.prettier-vscode" ,
7+ " ms-azure-devops.azure-pipelines"
8+ ]
9+ }
Original file line number Diff line number Diff line change 1+ {
2+ "omnisharp.enableRoslynAnalyzers" : true ,
3+ "omnisharp.enableEditorConfigSupport" : true ,
4+ "editor.formatOnSave" : true ,
5+ "[markdown]" : {
6+ "editor.defaultFormatter" : " esbenp.prettier-vscode"
7+ },
8+ "[json]" : {
9+ "editor.defaultFormatter" : " esbenp.prettier-vscode"
10+ },
11+ "[jsonc]" : {
12+ "editor.defaultFormatter" : " esbenp.prettier-vscode"
13+ },
14+ "[yaml]" : {
15+ "editor.defaultFormatter" : " esbenp.prettier-vscode"
16+ },
17+ "[xml]" : {
18+ "editor.defaultFormatter" : " esbenp.prettier-vscode"
19+ },
20+ "cSpell.language" : " en-GB" ,
21+ "cSpell.words" : []
22+ }
Original file line number Diff line number Diff line change 11# openapi-typescript-fetch-example
22
3+ A simple project that demonstrates:
4+
5+ - How generate a typed HTTP client from an OpenAPI definition using the ` typescript-fetch ` template
6+ - How to consume the HTTP client
7+
38## Project Overview
49
510``` console
@@ -15,8 +20,15 @@ dotnet new tool-manifest
1520dotnet new nugetconfig
1621dotnet tool install Swashbuckle.AspNetCore.Cli
1722dotnet new sln --name OpenAPITypeScriptFetchExample
18- dotnet new webapi -o WebAPI
23+ dotnet new webapi -o WebAPI
1924dotnet sln add WebAPI
2025
2126# .editorconfig config manually created from https://docs.microsoft.com/en-us/dotnet/fundamentals/code-analysis/code-style-rule-options
2227```
28+
29+ ## TODO
30+
31+ - [ ] Add bearer token auth to .NET project
32+ - [ ] Setup TS project in ` ./Client `
33+ - [ ] Generate HTTP client from OpenAPI spec
34+ - [ ] Show usage of HTTP client including token renewal in middleware
You can’t perform that action at this time.
0 commit comments