virusis_api_client_ng 0.1.26 copy "virusis_api_client_ng: ^0.1.26" to clipboard
virusis_api_client_ng: ^0.1.26 copied to clipboard

Dart and Flutter API client SDK generated from the Virusis backend OpenAPI specification.

virusis_api_client_ng #

Dart and Flutter API client SDK generated from the Virusis backend OpenAPI specification.

This package is the Flutter/Dart companion release for:

@virusis/api-client@0.1.26

Use the same version number in web and mobile projects when you want both clients to target the same generated API surface.

Installation #

Add the package to your Flutter app:

dependencies:
  virusis_api_client_ng: 0.1.26

Then run:

flutter pub get

Import #

import 'package:virusis_api_client_ng/virusis_api_client_ng.dart';

Basic Usage #

import 'package:virusis_api_client_ng/virusis_api_client_ng.dart';

final client = VirusisApiClient(
  basePathOverride: 'https://api.example.com',
);

client.setApiKey('Bearer', 'Bearer $accessToken');

final authApi = client.getAuthApi();
final scansApi = client.getScansApi();

Keep API setup in one app-level service so base URL and authentication are not duplicated across screens.

Version Alignment #

Platform Package Version
Web/Node/TypeScript @virusis/api-client 0.1.26
Flutter/Dart virusis_api_client_ng 0.1.26

Regeneration #

From the repository root:

PUB_NAME=virusis_api_client_ng PUB_VERSION=0.1.26 SPEC_URL="http://localhost:5000/swagger/v1/swagger.json" npm run gen:flutter
# or, when specs/openapi.json is already current:
SKIP_FETCH_SPEC=1 PUB_NAME=virusis_api_client_ng PUB_VERSION=0.1.26 npm run gen:flutter

Before publishing:

cd out/flutter
dart pub get
dart run build_runner build --delete-conflicting-outputs
dart analyze
dart pub publish --dry-run
0
likes
0
points
489
downloads

Publisher

unverified uploader

Weekly Downloads

Dart and Flutter API client SDK generated from the Virusis backend OpenAPI specification.

Repository (GitHub)
View/report issues

License

unknown (license)

Dependencies

built_collection, built_value, dio, one_of, one_of_serializer

More

Packages that depend on virusis_api_client_ng