Skip to content

Commit 406c2ac

Browse files
authored
Merge pull request #215 from edinchev/patch-1
Some small typos and grammatical fixes in index.md.
2 parents 5885d52 + 558b4a3 commit 406c2ac

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

distribution/index.md

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -369,7 +369,7 @@ Try the `GET` operation on the collection. The book we added appears. When the c
369369
the pagination will automatically show up, [and this is entirely configurable](../core/pagination.md). You may be interested
370370
in [adding some filters and adding sorts to the collection](../core/filters.md) as well.
371371

372-
You may have notice that some keys start by the `@` symbol in the generated JSON response (`@id`, `@type`, `@context`...)?
372+
You may have noticed that some keys start with the `@` symbol in the generated JSON response (`@id`, `@type`, `@context`...)?
373373
API Platform comes with a full support of the [JSON-LD](http://json-ld.org/) format (and its [Hydra](http://www.hydra-cg.com/)
374374
extension). It allows to build smart clients, with auto-discoverability capabilities (take a look at [Hydra console](http://www.markus-lanthaler.com/hydra/console/))
375375
and is very useful for open data, SEO and interoperability when [used with open vocabularies such as Schema.org](http://blog.schema.org/2013/06/schemaorg-and-json-ld.html).
@@ -397,7 +397,7 @@ Now, add a review for this book using the `POST` operation for the `Review` reso
397397
There are two interesting things to mention about this request:
398398

399399
First, we learned how to work with relations. In a hypermedia API, every resource is identified by an (unique) [IRI](https://en.wikipedia.org/wiki/Internationalized_Resource_Identifier).
400-
An URL is a valid IRI, and it's what API Platform uses. The `@id` property of every JSON-LD document contains the IRI identifying
400+
A URL is a valid IRI, and it's what API Platform uses. The `@id` property of every JSON-LD document contains the IRI identifying
401401
it. You can use this IRI to reference this document from other documents. In the previous request, we used the IRI of the
402402
book we created earlier to link it with the `Review` we were creating. API Platform is smart enough to deal with IRIs.
403403
By the way, you may want to [embed documents](../core/serialization-groups-and-relations.md) instead of referencing them

0 commit comments

Comments
 (0)