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: core/events.md
+1-1Lines changed: 1 addition & 1 deletion
Display the source diff
Display the rich diff
Original file line number
Diff line number
Diff line change
@@ -79,7 +79,7 @@ final class BookMailSubscriber implements EventSubscriberInterface
79
79
}
80
80
```
81
81
82
-
If you use the standard edition of API Platform, creating the previous class is enough. [DunglasActionBundle](https://github.com/dunglas/DunglasActionBundle)
82
+
If you use the official API Platform distribution, creating the previous class is enough. [DunglasActionBundle](https://github.com/dunglas/DunglasActionBundle)
83
83
(installed by default) will automatically register this subscriber as a service and will inject its dependencies using [the
84
84
autowiring feature of the Symfony Dependency Injection Container](http://symfony.com/doc/current/components/dependency_injection/autowiring.html).
Copy file name to clipboardExpand all lines: core/getting-started.md
+9-10Lines changed: 9 additions & 10 deletions
Display the source diff
Display the rich diff
Original file line number
Diff line number
Diff line change
@@ -2,7 +2,7 @@
2
2
3
3
## Installing API Platform Core
4
4
5
-
If you are starting a new project, the easiest way to get API Platform up is to install the [API Platform Standard Edition](https://github.com/api-platform/api-platform).
5
+
If you are starting a new project, the easiest way to get API Platform up is to install the [API Platform Standard Edition](../distribution/api.md).
6
6
It ships with the API Platform Core library integrated with [the Symfony framework](https://symfony.com), [the schema generator](../schema-generator/),
There is no mandatory configuration. However, a lot of [configuration parameters](configuration.md) are available.
41
+
There is no mandatory configuration options although [many settings are available](configuration.md).
42
42
43
43
## Before Reading this Documentation
44
44
45
-
If you haven't read it already, take a look at [the "Creating your first API with API Platform, in 5 minutes" guide](../tutorial/api.md).
46
-
Using the schema generator is not necessary to use API Platform Core. But the "Exposing the API" section of this tutorial
47
-
covers basic concepts required to understand how API Platform works including how it implements the REST pattern and what
48
-
[JSON-LD](http://json-ld.org/) and [Hydra](http://www.hydra-cg.com/) formats are.
45
+
If you haven't read it already, take a look at [the "Creating your first API with API Platform, in a few minutes" guide](../distribution/getting-started.md).
46
+
This tutorial covers basic concepts required to understand how API Platform works including how it implements the REST pattern
47
+
and what [JSON-LD](http://json-ld.org/) and [Hydra](http://www.hydra-cg.com/) formats are.
49
48
50
49
## Mapping the Entities
51
50
52
-
API Platform Core is able to automatically expose entities mapped as "API resources" through a REST API supporting CRUD operations.
51
+
API Platform Core is able to automatically expose entities mapped as "API resources" through a REST API supporting CRUD
52
+
operations.
53
53
To expose your entities, you can use Docblock annotations, XML and YAML configuration files.
54
54
55
55
Here is an example of entities mapped using annotations which will be exposed trough a REST API:
56
56
57
57
```php
58
-
<?php
59
58
60
59
// src/AppBundle/Entity/Product.php
61
60
@@ -166,7 +165,7 @@ As an alternative to annotations, you can map entity classes using XML or YAML:
Copy file name to clipboardExpand all lines: core/nelmio-api-doc.md
+5-4Lines changed: 5 additions & 4 deletions
Display the source diff
Display the rich diff
Original file line number
Diff line number
Diff line change
@@ -1,11 +1,12 @@
1
1
# NelmioApiDocBundle Integration
2
2
3
-

3
+

4
4
5
5
[NelmioApiDocBundle](https://github.com/nelmio/NelmioApiDocBundle) (since version 2.9) has built-in support for API Platform.
6
-
Installing it will give you access to a human-readable documentation and a nice sandbox. It is an alternative to the builtin API Platform documentation.
6
+
Installing it will give you access to a human-readable documentation and a nice sandbox. It is an alternative to the builtin
7
+
API Platform documentation.
7
8
8
-
If you use the standalone API Platform Core bundle, download and enable the bundle as explained in [NelmioApiDocBundle installation steps](https://github.com/nelmio/NelmioApiDocBundle/blob/master/Resources/doc/index.rst) (skip routing and configuration steps), and then copy the following configuration:
9
+
To enable the NelmioApiDoc integration, copy the following configuration:
Copy file name to clipboardExpand all lines: core/operations.md
+2-2Lines changed: 2 additions & 2 deletions
Display the source diff
Display the rich diff
Original file line number
Diff line number
Diff line change
@@ -170,7 +170,7 @@ implements the [Action-Domain-Responder](https://github.com/pmjones/adr) pattern
170
170
171
171
Note: [the event system](events.md) should be preferred over custom controllers when applicable.
172
172
173
-
The standard edition of API Platform also comes with an enhanced action system for Symfony pre-installed: [DunglasActionBundle](https://github.com/dunglas/DunglasActionBundle).
173
+
The distribution of API Platform also comes with an enhanced action system for Symfony pre-installed: [DunglasActionBundle](https://github.com/dunglas/DunglasActionBundle).
174
174
*DunglasActionBundle* eases the implementation of the ADR pattern with Symfony and improves the developer experience.
175
175
176
176
It automatically registers action classes stored in `src/*Bundle/Action` and `src/*Bundle/Controller` directories as autowired
@@ -280,7 +280,7 @@ It is mandatory to set the `_api_resource_class` and `_api_item_operation_name`
280
280
operation) in the parameters of the route (`defaults` key). It allows API Platform and the Symfony routing system to hook
281
281
together.
282
282
283
-
Here we consider that DunglasActionBundle is installed (the default when using the API Platform standard edition). This
283
+
Here we consider that DunglasActionBundle is installed (the default when using the API Platform distribution). This
284
284
action will be automatically registered as a service (the service name is the same as the class name: `AppBundle\Action\BookSpecial`).
285
285
286
286
API Platform automatically retrieve the appropriate PHP entity then then deserializes it, and for `POST` and `PUT` requests
Copy file name to clipboardExpand all lines: deployment/docker.md
+1-1Lines changed: 1 addition & 1 deletion
Display the source diff
Display the rich diff
Original file line number
Diff line number
Diff line change
@@ -2,7 +2,7 @@
2
2
3
3
API Platform projects can be run through [Docker](https://www.docker.com/).
4
4
A [Docker compose](https://docs.docker.com/compose/) configuration including a fully working [LAMP](https://en.wikipedia.org/wiki/LAMP_(software_bundle))
5
-
stack is shipped with the standard edition.
5
+
stack is shipped with the API Platform distribution.
6
6
7
7
To install it, run the following commands (Docker must be installed on your system):
0 commit comments