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/filters.md
+4-4Lines changed: 4 additions & 4 deletions
Display the source diff
Display the rich diff
Original file line number
Diff line number
Diff line change
@@ -951,7 +951,7 @@ App\Entity\Tweet:
951
951
952
952
[/codeSelector]
953
953
954
-
Given that the collection endpoint is `/tweets`, you can filter tweets by id and date in ascending or descending order:
954
+
Given that the collection endpoint is `/tweets`, you can filter tweets by ID and date in ascending or descending order:
955
955
`/tweets?order[id]=asc&order[date]=desc`.
956
956
957
957
By default, whenever the query does not specify the direction explicitly (e.g: `/tweets?order[id]&order[date]`), filters
@@ -1173,8 +1173,8 @@ to retrieve items, [extensions](extensions.md) are the way to go.
1173
1173
A Doctrine ORM filter is basically a class implementing the `ApiPlatform\Doctrine\Orm\Filter\FilterInterface`.
1174
1174
API Platform includes a convenient abstract class implementing this interface and providing utility methods: `ApiPlatform\Doctrine\Orm\Filter\AbstractFilter`.
1175
1175
1176
-
In the following example, we create a class to filter a collection by applying a regexp to a property. The `REGEXP` DQL
1177
-
function used in this example can be found in the [`DoctrineExtensions`](https://github.com/beberlei/DoctrineExtensions)
1176
+
In the following example, we create a class to filter a collection by applying a regular expression to a property.
1177
+
The `REGEXP` DQL function used in this example can be found in the [`DoctrineExtensions`](https://github.com/beberlei/DoctrineExtensions)
1178
1178
library. This library must be properly installed and registered to use this example (works only with MySQL).
1179
1179
1180
1180
```php
@@ -1518,7 +1518,7 @@ final class UserFilter extends SQLFilter
Copy file name to clipboardExpand all lines: create-client/nuxtjs.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
@@ -1,6 +1,6 @@
1
1
# Nuxt.js Generator
2
2
3
-
The Nuxt.js generator scaffolds components for Server Side Rendered applications using [Nuxt.js](https://nuxtjs.org/) and [Vuetify](https://vuetifyjs.com/).
3
+
The Nuxt.js generator scaffolds components for server-side rendered (SSR) applications using [Nuxt.js](https://nuxtjs.org/) and [Vuetify](https://vuetifyjs.com/).
Copy file name to clipboardExpand all lines: distribution/index.md
+7-7Lines changed: 7 additions & 7 deletions
Display the source diff
Display the rich diff
Original file line number
Diff line number
Diff line change
@@ -235,8 +235,8 @@ allows to easily write functional tests and has good team collaboration features
235
235
Your API Platform project is now 100% functional. Let's expose our own data model.
236
236
Our bookshop API will start simple. It will be composed of a `Book` resource type and a `Review` one.
237
237
238
-
Books have an id, an ISBN, a title, a description, an author, a publication date and are related to a list of reviews.
239
-
Reviews have an id, a rating (between 0 and 5), a body, an author, a publication date and are related to one book.
238
+
Books have an ID, an ISBN, a title, a description, an author, a publication date and are related to a list of reviews.
239
+
Reviews have an ID, a rating (between 0 and 5), a body, an author, a publication date and are related to one book.
240
240
241
241
Let's describe this data model as a set of Plain Old PHP Objects (POPO):
242
242
@@ -252,7 +252,7 @@ use Doctrine\Common\Collections\ArrayCollection;
252
252
#[ApiResource]
253
253
class Book
254
254
{
255
-
/** The id of this book. */
255
+
/** The ID of this book. */
256
256
private ?int $id = null;
257
257
258
258
/** The ISBN of this book (or null if doesn't have one). */
@@ -296,7 +296,7 @@ use ApiPlatform\Metadata\ApiResource;
296
296
#[ApiResource]
297
297
class Review
298
298
{
299
-
/** The id of this review. */
299
+
/** The ID of this review. */
300
300
private ?int $id = null;
301
301
302
302
/** The rating of this review (between 0 and 5). */
@@ -335,7 +335,7 @@ Note that entities' and properties' descriptions in the API documentation, and t
335
335
336
336
The framework also use these metadata to serialize and deserialize data from JSON (and other formats) to PHP objects (back and forth)!
337
337
338
-
For the sake of simplicity, in this example we used public properties (except for the id, see below). API Platform (as well
338
+
For the sake of simplicity, in this example we used public properties (except for the ID, see below). API Platform (as well
339
339
as Symfony and Doctrine) also supports accessor methods (getters/setters), use them if you want to.
340
340
We used a private property and a getter for the ID to enforce the fact that it is read only (we will let the DBMS generating it). API Platform also has first-grade support for UUIDs. [You should
341
341
probably use them instead of auto-incremented IDs](https://www.clever-cloud.com/blog/engineering/2015/05/20/why-auto-increment-is-a-terrible-idea/).
@@ -372,7 +372,7 @@ Modify these files as described in these patches:
372
372
#[ApiResource]
373
373
class Book
374
374
{
375
-
/** The id of this book. */
375
+
/** The ID of this book. */
376
376
+ #[ORM\Id, ORM\Column, ORM\GeneratedValue]
377
377
private ?int $id = null;
378
378
@@ -416,7 +416,7 @@ Modify these files as described in these patches:
0 commit comments