You can Access Rest API to use OpenAPI Generator in Unity. This Plugin is able to operate the OpenAPI CodeGen, and setting on GUI.
- Unity (2021.3) or later
- Docker
-
Add this package to Unity Package Manager from git url, and install this package.
-
Open setup window at
Window/OpenAPI Code Generator/Setup
in the Unity's menu, and input absolute Docker Path. After that, press theSetup
button. -
Open generator window at
Window/OpenAPI Code Generator/Generator
in the Unity's menu. Input API Document file absolute URL and API Client code output absolute folder, and press theGenerate
button.
You can set default API Document URL, default Client File Output Path, Docker Path, and Generating C# Client Option.
Look Settings window at Window/OpenAPI Code Generator/Settings
.
This package is under a MIT License