Unofficial Dart implementation of Deutsche Bahn’s construction site API https://pub.dev/packages/db_construction_site
You can not select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
db_construction_site/README.md

29 lines
1.1 KiB

# db_construction_site
4 years ago
![Pub Version (including pre-releases)](https://img.shields.io/pub/v/db_construction_site?include_prerelease)
![Drone (self-hosted)](https://img.shields.io/drone/build/JonasFranzDEV/db_construction_site?server=https%3A%2F%2Fdrone.jfdev.de)
Unofficial Dart implementation of Deutsche Bahn's construction site API. This library is not affiliated
with Deutsche Bahn (DB). Please note that the API might change in the future making this library incompatible.
## Usage
Add `db_construction_site` to your `pubspec.yaml`:
```yaml
dependencies:
db_construction_site: ^0.0.1-dev
```
Import the package `package:db_construction_site/db_construction_site.dart` and initiate a new instance of `DBConstructionSite`
you can pass another base url as a named constructor parameter if you'd like to.
```dart
import 'package:db_construction_site/db_construction_site.dart';
final constructionSite = DBConstructionSite();
```
or
```dart
import 'package:db_construction_site/db_construction_site.dart';
final constructionSite = DBConstructionSite(baseUrl: "https://your-new-base-url");
```