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: distribution/index.md
+2-2Lines changed: 2 additions & 2 deletions
Original file line number
Diff line number
Diff line change
@@ -369,7 +369,7 @@ Try the `GET` operation on the collection. The book we added appears. When the c
369
369
the pagination will automatically show up, [and this is entirely configurable](../core/pagination.md). You may be interested
370
370
in [adding some filters and adding sorts to the collection](../core/filters.md) as well.
371
371
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`...)?
373
373
API Platform comes with a full support of the [JSON-LD](http://json-ld.org/) format (and its [Hydra](http://www.hydra-cg.com/)
374
374
extension). It allows to build smart clients, with auto-discoverability capabilities (take a look at [Hydra console](http://www.markus-lanthaler.com/hydra/console/))
375
375
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
397
397
There are two interesting things to mention about this request:
398
398
399
399
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
401
401
it. You can use this IRI to reference this document from other documents. In the previous request, we used the IRI of the
402
402
book we created earlier to link it with the `Review` we were creating. API Platform is smart enough to deal with IRIs.
403
403
By the way, you may want to [embed documents](../core/serialization-groups-and-relations.md) instead of referencing them
0 commit comments