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/migrate-from-fosrestbundle.md
+11-11Lines changed: 11 additions & 11 deletions
Display the source diff
Display the rich diff
Original file line number
Diff line number
Diff line change
@@ -21,7 +21,7 @@ See [The view layer](https://github.com/FriendsOfSymfony/FOSRestBundle/blob/3.x/
21
21
22
22
Add the `ApiResource` attribute to your entities, and enable operations you desire inside. By default, every operations are activated.
23
23
24
-
See [Operations](../operations.md).
24
+
See [Operations](operations.md).
25
25
26
26
### Make custom controllers
27
27
@@ -31,11 +31,11 @@ Same as above.
31
31
32
32
**In API Platform**
33
33
34
-
Even though this is not recommended, API Platform allows you to [create custom controllers](../controllers.md) and declare them in your entity's `ApiResource` attribute.
34
+
Even though this is not recommended, API Platform allows you to [create custom controllers](controllers.md) and declare them in your entity's `ApiResource` attribute.
35
35
36
-
You can use them as you migrate from FOSRestBundle, but you should consider [switching to Symfony Messenger](../messenger.md) as it will give you more benefits, such as compatibility with both REST and GraphQL, and better performances of your API on big tasks.
36
+
You can use them as you migrate from FOSRestBundle, but you should consider [switching to Symfony Messenger](messenger.md) as it will give you more benefits, such as compatibility with both REST and GraphQL, and better performances of your API on big tasks.
37
37
38
-
See [General Design Considerations](../design.md).
38
+
See [General Design Considerations](design.md).
39
39
40
40
41
41
### Routing system (with native documentation support)
@@ -50,7 +50,7 @@ See [Full default annotations](https://github.com/FriendsOfSymfony/FOSRestBundle
50
50
51
51
Use the `ApiResource` attribute to activate the HTTP methods you need for your entity. By default, all the methods are enabled.
52
52
53
-
See [Operations](../operations.md).
53
+
See [Operations](operations.md).
54
54
55
55
### Hook into the requests handling
56
56
@@ -64,7 +64,7 @@ See [Listener support](https://github.com/FriendsOfSymfony/FOSRestBundle/blob/3.
64
64
65
65
API Platform provides a lot of ways to customize the behavior of your API, depending on what you exactly want to do.
66
66
67
-
See [Extending API Platform](../extending.md) for more details.
67
+
See [Extending API Platform](extending.md) for more details.
68
68
69
69
### Customize the formats of the requests and the responses
70
70
@@ -82,7 +82,7 @@ Both the request and the response body's format can be customized.
82
82
83
83
You can configure the formats of the API either globally or in specific resources or operations. API Platform provides native support for multiple formats including JSON, XML, CSV, YAML, etc.
84
84
85
-
See [Content negociation](../content-negotiation.md).
85
+
See [Content negociation](content-negotiation.md).
86
86
87
87
### Name conversion
88
88
@@ -100,7 +100,7 @@ Both request and response bodies can be converted.
100
100
101
101
API Platform uses [name converters](https://symfony.com/doc/current/components/serializer.html#component-serializer-converting-property-names-when-serializing-and-deserializing) included in the Serializer component of Symfony. You can create your own by implementing the `NameConverterInterface` provided by Symfony.
102
102
103
-
See [_Name Conversion_ in The Serialization Process](../serialization.md#name-conversion).
103
+
See [_Name Conversion_ in The Serialization Process](serialization.md#name-conversion).
104
104
105
105
### Handle errors
106
106
@@ -114,7 +114,7 @@ See [ExceptionController support](https://github.com/FriendsOfSymfony/FOSRestBun
114
114
115
115
Map the exceptions to HTTP statuses in the `api_platform.exception_to_status` parameter.
116
116
117
-
See [Errors Handling](../errors.md).
117
+
See [Errors Handling](errors.md).
118
118
119
119
### Security
120
120
@@ -128,7 +128,7 @@ Use the `security` attribute in the `ApiResource` and `ApiProperty` attributes.
128
128
129
129
Note you can also use the `security.yml` file if you only need to limit access to specific roles.
130
130
131
-
See [Security](../security.md).
131
+
See [Security](security.md).
132
132
133
133
### API versioning
134
134
@@ -142,4 +142,4 @@ See [API versioning](https://github.com/FriendsOfSymfony/FOSRestBundle/blob/3.x/
142
142
143
143
API Platform has no native support to API versioning, but instead provides an approach consisting of deprecating resources when needed. It allows a smoother upgrade for clients, as they need to change their code only when it is necessary.
144
144
145
-
See [Deprecating Resources and Properties](../deprecations.md).
145
+
See [Deprecating Resources and Properties](deprecations.md).
0 commit comments