openapi_dart

Last updated:

0 purchases

openapi_dart Image
openapi_dart Images
Add to Cart

Description:

openapi dart

openapi_dart #
An OpenAPI JSON Spec Parser for dart, from: https://swagger.io/specification/

OpenAPI version: 3.1

Features #

Load OpenAPI json file, and convert to dart object

Usage #
According to /example/openapi_dart_example.dart

From JSON String

Future<void> main() async {
String jsonString = "{...OpenAPI String...}";
OpenAPILoader openAPILoader = OpenAPILoader();
OpenAPI openAPI = await openAPILoader.load(jsonString);
}
copied to clipboard

From JSON File

Future<void> main() async {
String jsonPath = "$currentWorkingDirectory/example/json/$jsonFileName";
OpenAPILoader openAPILoader = OpenAPILoader();
OpenAPI openAPI = await openAPILoader.loadFromFile(jsonPath);
}
copied to clipboard

License:

For personal and professional use. You cannot resell or redistribute these repositories in their original state.

Files In This Product:

Customer Reviews

There are no reviews.