-
Notifications
You must be signed in to change notification settings - Fork 1
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
How does this work? #9
Comments
These are my notes how i used it today. Wanted to create the server app, in case i don't have internet connection. Creating server app:Install .net core hosting 3.1
refresh the generator
right mouse button on the exampleServer -> Generate will create the application Now run the start.bat from the terminal in vscode [
{
"name": "exampleClient",
"generator": "openapi-toolkit",
"type": "client",
"language": "c#",
"swaggerPath": "Pre Paid API Swagger Oct 20.json",
"outputFolder": "./generatedClientFromSwagger",
"options": {
"namepsace": "OpenapiDefinitionGenerate",
"modelsFolderName": "models",
"modelNamePrefix": "",
"modelNameSuffix": "",
"controllersFolderName": "controllers",
"controllerNamePrefix": "",
"controllerNameSuffix": "Controller"
}
},
{
"name": "exampleServer",
"generator": "http://api.openapi-generator.tech/api/gen",
"type": "server",
"language": "aspnetcore",
"swaggerPath": "Pre Paid API Swagger Oct 20.json",
"options": {
"supportsES6": true,
"apiPackage": "api",
"modelPackage": "models",
"withSeparateModelsAndApi": true
},
"outputFolder": "./generatedServerFromSwagger"
}
] |
I have installed this extension and managed to create a config file, but after that it is a mystery as to how this is actually supposed to work. How exactly do you generate the API from the JSON file? Is there a CLI of some sort?
The only thing that I see is a flickering blue cursor next to the GENERATOR FROM SWAGGER:
Thank you.
The text was updated successfully, but these errors were encountered: