openapi_spec 0.7.19 copy "openapi_spec: ^0.7.19" to clipboard
openapi_spec: ^0.7.19 copied to clipboard

OpenAPI Specification generator using native Dart code, as well as an all-in-one parser of existing specifications.

example/example.dart

import 'package:openapi_spec/openapi_spec.dart';

void main() async {
  // ==========================================
  // Define the spec
  // ==========================================

  final spec = OpenApi(
    info: Info(
      title: 'My API',
      version: '1.0.0',
    ),
  );

  // ==========================================
  // Export to Swagger UI
  // ==========================================

  await spec.toSwaggerUI(
    destination: './build/swagger_ui',
    replace: true,
  );
}
3
likes
140
pub points
58%
popularity

Publisher

verified publishertazatechnology.com

OpenAPI Specification generator using native Dart code, as well as an all-in-one parser of existing specifications.

Homepage
Repository (GitHub)
View/report issues

Documentation

Documentation
API reference

License

BSD-3-Clause (LICENSE)

Dependencies

collection, freezed_annotation, http, intl, json_annotation, path, recase, yaml

More

Packages that depend on openapi_spec