Skip to content

Commit 5513de2

Browse files
committed
Issue #110: update book tutorial
Signed-off-by: horea <[email protected]>
1 parent 32bcb2f commit 5513de2

File tree

1 file changed

+7
-5
lines changed

1 file changed

+7
-5
lines changed

docs/book/v6/tutorials/create-book-module.md

Lines changed: 7 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -154,9 +154,9 @@ class Book extends AbstractEntity
154154
public function getArrayCopy(): array
155155
{
156156
return [
157-
'uuid' => $this->getUuid()->toString(),
158-
'name' => $this->getName(),
159-
'author' => $this->getAuthor(),
157+
'uuid' => $this->getUuid()->toString(),
158+
'name' => $this->getName(),
159+
'author' => $this->getAuthor(),
160160
'releaseDate' => $this->getReleaseDate(),
161161
];
162162
}
@@ -181,7 +181,7 @@ use Dot\DependencyInjection\Attribute\Entity;
181181
#[Entity(name: Book::class)]
182182
class BookRepository extends AbstractRepository
183183
{
184-
public function getBooks(array $params = []): QueryBuilder
184+
public function getBooks(array $params): QueryBuilder
185185
{
186186
return $this
187187
->getQueryBuilder()
@@ -825,7 +825,9 @@ To list the books use:
825825
curl http://0.0.0.0:8080/books
826826
```
827827

828-
To retrieve a book, `curl` one of the links found in the output of the **list books** command, under `_embedded` . `books` . * . `_links` . `self` . `href`
828+
To fetch a book, `curl` one of the links found in the output of the **list books** command, under `_embedded` . `books` . * . `_links` . `self` . `href`.
829+
830+
The link should have the following format:
829831

830832
```shell
831833
curl http://0.0.0.0:8080/book/{uuid}

0 commit comments

Comments
 (0)