Generate client with open-api-generator (#1)

* Generate project with open-api-generator

* Add example project

* Create wrapper class
This commit is contained in:
2025-05-26 21:40:46 -03:00
committed by GitHub
parent 311678cfd6
commit d791408793
87 changed files with 24687 additions and 6126 deletions

12
scripts/generate.ps1 Normal file
View File

@ -0,0 +1,12 @@
#!/usr/bin/env pwsh
$env:CSHARP_POST_PROCESS_FILE = ""
java -jar ./vendor/openapi-generator/openapi-generator-cli.jar generate `
-i https://api.tribufu.com/openapi.json `
-g csharp `
-o . `
--global-property apis,models,supportingFiles,apiDocs=false,modelDocs=false,apiTests=false,modelTests=false `
--additional-properties=packageName=Tribufu.Generated,library=restsharp,zeroBasedEnums=true,nullableReferenceTypes=true `
--openapi-normalizer SET_TAGS_FOR_ALL_OPERATIONS=TribufuGenerated `
--skip-validate-spec

View File

@ -1,3 +0,0 @@
#!/usr/bin/env sh
nswag run ./src/Tribufu/api.nswag