@@ -27,16 +27,39 @@ The simplest way to check out the project including the submodule is to use the
...
@@ -27,16 +27,39 @@ The simplest way to check out the project including the submodule is to use the
The referenced submodule contains the OpenAPI specification of the ISG ARF World Storage. To checkout the newest version of it use the following commands:
The referenced submodule contains the OpenAPI specification of the ISG ARF World Storage. To checkout the newest version of it use the following commands:
cd ARF005WorldStorageAPI
cd openapi
git checkout master
git checkout master
cd ..
cd ..
# Installing NSwag
npm install nswag -g
You can check the version with
npx nswag version
# Code Generation
# Code Generation
To generate the code and the DLLs use the following commands:
To generate the code and the DLLs use the following commands:
npm install
npx nswag run WorldStorageNSwag.json
npm run build
npx nswag run WorldAnalysisNSwag.json
The generated C# modules (one per definition file) are then contained in the folder `client/csharp-nswag`.
# How to proceed then?
Copy the cs file(s) to your CSharp project or Unity asset folder
## Unity
Add the NewtonSoft package:
"com.unity.nuget.newtonsoft-json": "3.2.1",
Change the Unity prefs to use the NET Framework (not only 2.1)
Add a file "csc.rsp":
-r:System.ComponentModel.DataAnnotations.dll
The generated library and its depencies are then contained in the folder `generated_client/bin`.