Initial commit

This commit is contained in:
Jason Dove
2021-02-08 21:13:53 -06:00
commit 4d52e115b5
493 changed files with 31399 additions and 0 deletions
@@ -0,0 +1,5 @@
docs/**
git_push.sh
ErsatzTV.Api.Sdk.sln
.gitignore
README.md
+24
View File
@@ -0,0 +1,24 @@
#! /usr/bin/env bash
set -e
TARGET_FOLDER="../../generated/ErsatzTV.Api.Sdk"
rm -f swagger.json
dotnet tool restore
dotnet build ../../ErsatzTV/ErsatzTV.csproj
dotnet swagger tofile --output swagger.json ../../ErsatzTV/bin/Debug/net5.0/ErsatzTV.dll v1
rm -rf "$TARGET_FOLDER"
mkdir "$TARGET_FOLDER"
cp .openapi-generator-ignore "$TARGET_FOLDER/"
openapi-generator-cli generate -i swagger.json \
-g csharp-netcore \
-o $TARGET_FOLDER \
--additional-properties packageName=ErsatzTV.Api.Sdk \
--additional-properties=targetFramework=netcoreapp3.1
rm -f "$TARGET_FOLDER/appveyor.yml"
rm -rf "$TARGET_FOLDER/src/ErsatzTV.Api.Sdk.Test"
@@ -0,0 +1,7 @@
{
"$schema": "node_modules/@openapitools/openapi-generator-cli/config.schema.json",
"spaces": 2,
"generator-cli": {
"version": "5.0.0"
}
}