OpenAPI.NET.OData/src/OoasUtil
2018-01-04 15:50:18 -08:00
..
ComLineProcesser.cs change to use --input|-i for the CSDL input 2018-01-04 15:50:18 -08:00
FileOpenApiGenerator.cs Add console application to accept CSDL and output Open API 3.0 2017-11-16 11:33:06 -08:00
OoasUtil.csproj remove the .NetCoreApp 2.0 target frame for the console application 2017-11-16 11:36:11 -08:00
OpenApiGenerator.cs Update to Open API library on Nuget.org and resolve the conflicts 2017-12-20 11:44:43 -08:00
Program.cs change to use --input|-i for the CSDL input 2018-01-04 15:50:18 -08:00
README.md change to use --input|-i for the CSDL input 2018-01-04 15:50:18 -08:00
UrlOpenApiGenerator.cs change to use --input|-i for the CSDL input 2018-01-04 15:50:18 -08:00

OoasUtil Command

Name

OoasUtil.exe - General executable application used used to create Open Api 3.0 document based on OData Edm input.

Synopsis


OoasUtil.exe [--help|-h] [--version|-v] [Options]

Description

OoasUtil.exe is a tool used to convert CSDL to Open API document.

Options

[--json|-j]

Output the "JSON" format Open API document;

[--yaml|-y]

Output the "YAML" format Open API document;

[--input|-i file]

Indicate to where to get CSDL, from file or from Uri.

[--output|-o file]

Indicate to output file name.

Examples

OoasUtil.exe -j -i http://services.odata.org/TrippinRESTierService -o trip.json

The content of trip.json is similiar at https://github.com/xuzhg/OData.OpenAPI/blob/master/Microsoft.OData.OpenAPI/Microsoft.OData.OpenAPI.Tests/Resources/TripService.OpenApi.json