Skip to content

Commit

Permalink
Enhance README.md
Browse files Browse the repository at this point in the history
  • Loading branch information
moritz-fink committed Feb 5, 2022
1 parent 433b6fd commit cea3c06
Showing 1 changed file with 6 additions and 1 deletion.
7 changes: 6 additions & 1 deletion README.md
Original file line number Diff line number Diff line change
Expand Up @@ -26,12 +26,17 @@ In order to retrieve data about all books:

```
Response<Book> response = await lotrApi.getBooks();
```

The actual list of items is always stored in the ```docs``` attribute:

```
List<Book> books = response.docs;
```

*The Response holds additional information such as the total number of items.*

You can also get a specific book by providing its ID:
You can also directly get a specific book by providing its ID:

```
String firstBookId = books.first.id;
Expand Down

0 comments on commit cea3c06

Please sign in to comment.