You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Copy file name to clipboardExpand all lines: README.md
+6-6
Original file line number
Diff line number
Diff line change
@@ -29,15 +29,15 @@ To make API calls we need to use the `JsonServiceClient`, installed by adding th
29
29
30
30
```yaml
31
31
dependencies:
32
-
servicestack: "^1.0.0"
32
+
servicestack: "^1.0.2"
33
33
```
34
34
35
-
Saving `pubspec.yaml` in VS Code with the [Dart Code Extension](https://dartcode.org) automatically calls `flutter packages get` to add any new dependencies to your project.
35
+
Saving `pubspec.yaml` in VS Code with the [Dart Code Extension](https://dartcode.org) automatically calls `pub get` or `flutter packages get` (in Flutter projects) to add any new dependencies to your project.
36
36
37
37
We now have everything we need to be able to make typed API requests to any of [TechStacks APIs](https://www.techstacks.io/metadata) with a shared `JsonServiceClient` instance populated with the base URL of the remote endpoint, e.g:
38
38
39
39
```dart
40
-
import 'package:servicestack/servicestack.dart';
40
+
import 'package:servicestack/client.dart';
41
41
42
42
import 'techstacks.dtos.dart';
43
43
@@ -206,12 +206,12 @@ Which updates all Dart references in the current directory, including any custom
206
206
Updated: test.dtos.dart
207
207
Updated: techstacks.dtos.dart
208
208
209
-
This gives us everything we need to call Web Services in our Flutter App, by importing `package:servicestack/servicestack.dart` containing `JsonServiceClient` as well as any generated DTOs.
209
+
This gives us everything we need to call Web Services in our Flutter App, by importing `package:servicestack/client.dart` containing `JsonServiceClient` as well as any generated DTOs.
210
210
211
211
Then create new `JsonServiceClient` instances initialized with the `BaseUrl` for each of the remote endpoints we want to call:
0 commit comments