Skip to content

Commit f2345bb

Browse files
authored
Merge pull request #190 from soyuka/2.0
Fix trough through
2 parents 1021370 + 5656482 commit f2345bb

File tree

5 files changed

+9
-9
lines changed

5 files changed

+9
-9
lines changed

core/getting-started.md

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -56,7 +56,7 @@ API Platform Core is able to automatically expose entities mapped as "API resour
5656
operations.
5757
To expose your entities, you can use Docblock annotations, XML and YAML configuration files.
5858
59-
Here is an example of entities mapped using annotations which will be exposed trough a REST API:
59+
Here is an example of entities mapped using annotations which will be exposed through a REST API:
6060
6161
```php
6262
<?php
@@ -138,7 +138,7 @@ class Offer
138138
}
139139
```
140140

141-
It is the minimal configuration required to expose `Product` and `Offer` entities as JSON-LD documents trough an hypermedia
141+
It is the minimal configuration required to expose `Product` and `Offer` entities as JSON-LD documents through an hypermedia
142142
web API.
143143

144144
If you are familiar with the Symfony ecosystem, you noticed that entity classes are also mapped with Doctrine ORM annotations

core/serialization-groups-and-relations.md

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -136,7 +136,7 @@ In the following JSON document, the relation from a book to an author is represe
136136
### Normalization
137137

138138
To improve the application's performance, it is sometimes necessary to avoid issuing extra HTTP requests. It is possible
139-
to embed related objects (or only some of their properties) directly in the parent response trough serialization groups.
139+
to embed related objects (or only some of their properties) directly in the parent response through serialization groups.
140140
By using the following serialization groups annotations (`@Groups`), a JSON representation of the author is embedded in
141141
the book response:
142142

@@ -239,7 +239,7 @@ class Book
239239

240240
The following rules apply when denormalizating embedded relations:
241241

242-
* If a `@id` key is present in the embedded resource, the object corresponding to the given URI will be retrieved trough
242+
* If a `@id` key is present in the embedded resource, the object corresponding to the given URI will be retrieved through
243243
the data provider and any changes in the embedded relation will be applied to that object.
244244
* If no `@id` key exists, a new object will be created containing data provided in the embedded JSON document.
245245

deployment/heroku.md

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,7 @@
11
# Deploying an API Platform App on Heroku
22

33
[Heroku](http://heroku.com) is a popular, fast, scalable and reliable *Platform As A Service* (PaaS). As Heroku offers a
4-
free plan including database support trough [Heroku Postgres](https://www.heroku.com/postgres), it's
4+
free plan including database support through [Heroku Postgres](https://www.heroku.com/postgres), it's
55
a very convenient way to experiment with the API Platform.
66

77
The API Platform Heroku integration also supports MySQL databases provided by [the ClearDB add-on](https://addons.heroku.com/cleardb).

deployment/index.md

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -3,7 +3,7 @@
33
As an API Platform application is basically a standard Symfony application, [all Symfony deployment cookbooks](http://symfony.com/doc/current/cookbook/deployment/index.html)
44
apply.
55

6-
However, API Platform also provide facilities to deploy applications trough containers and Platforms as a Service (PaaS):
6+
However, API Platform also provide facilities to deploy applications through containers and Platforms as a Service (PaaS):
77

88
* [Deploying an API Platform App on Heroku](heroku.md)
99
* [Using API Platform with Docker](docker.md)

distribution/testing.md

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -21,7 +21,7 @@ the API without having to write a single line of PHP.
2121
Feature: Manage books and their reviews
2222
In order to manage books and their reviews
2323
As a client software developer
24-
I need to be able to retrieve, create, update and delete them trough the API.
24+
I need to be able to retrieve, create, update and delete them through the API.
2525
2626
# the "@createSchema" annotation provided by API Platform creates a temporary SQLite database for testing the API
2727
@createSchema
@@ -162,10 +162,10 @@ Clear the cache of the `test` environment:
162162

163163
$ docker-compose exec web bin/console cache:clear --env=test
164164

165-
Then run:
165+
Then run:
166166

167167
$ docker-compose run --rm web vendor/bin/behat`.
168-
168+
169169
Everything should be green now. Your Linked Data API is now specified and tested thanks to Behat!
170170

171171
You may also be interested by those alternative testing tools (not included in the API Platform distribution):

0 commit comments

Comments
 (0)