parent
845205e9dd
commit
f6ec15f21f
@ -1,14 +1,27 @@ |
|||||||
# db_construction_site |
# db_construction_site |
||||||
|
|
||||||
Dart implementation of Deutsche Bahn's construction site API |
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. |
||||||
|
|
||||||
## Getting Started |
## Usage |
||||||
|
|
||||||
This project is a starting point for a Dart |
Add `db_construction_site` to your `pubspec.yaml`: |
||||||
[package](https://flutter.dev/developing-packages/), |
```yaml |
||||||
a library module containing code that can be shared easily across |
dependencies: |
||||||
multiple Flutter or Dart projects. |
db_construction_site: ^0.0.1 |
||||||
|
``` |
||||||
|
|
||||||
For help getting started with Flutter, view our |
Import the package `package:db_construction_site/db_construction_site.dart` and initiate a new instance of `DBConstructionSite` |
||||||
[online documentation](https://flutter.dev/docs), which offers tutorials, |
you can pass another base url as a named constructor parameter if you'd like to. |
||||||
samples, guidance on mobile development, and a full API reference. |
|
||||||
|
```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"); |
||||||
|
``` |
Loading…
Reference in new issue