Skip to content

Commit 58891aa

Browse files
committed
Fix Prettier formatting on getting-started.md
1 parent 375cb50 commit 58891aa

1 file changed

Lines changed: 12 additions & 11 deletions

File tree

core/getting-started.md

Lines changed: 12 additions & 11 deletions
Original file line numberDiff line numberDiff line change
@@ -275,8 +275,8 @@ resources:
275275

276276
</code-selector>
277277

278-
If you prefer to use YAML, XML or PHP files instead of attributes, you must configure API Platform to
279-
load the appropriate files:
278+
If you prefer to use YAML, XML or PHP files instead of attributes, you must configure API Platform
279+
to load the appropriate files:
280280

281281
```yaml
282282
# api/config/packages/api_platform.yaml
@@ -291,9 +291,10 @@ api_platform:
291291
292292
> [!NOTE]
293293
>
294-
> PHP resource files must be placed in a directory listed under `mapping.imports` (not `mapping.paths`).
295-
> Each file must return an `ApiResource` instance. Since these files are not autoloaded, they won't
296-
> conflict with your entity classes. This approach provides the same fluent API as PHP attributes.
294+
> PHP resource files must be placed in a directory listed under `mapping.imports` (not
295+
> `mapping.paths`). Each file must return an `ApiResource` instance. Since these files are not
296+
> autoloaded, they won't conflict with your entity classes. This approach provides the same fluent
297+
> API as PHP attributes.
297298

298299
If you want to serialize only a subset of your data, please refer to the
299300
[Serialization documentation](serialization.md). **You're done!** You now have a fully featured API
@@ -399,12 +400,12 @@ REST [operations](operations.md) for resources of the product type:
399400

400401
In addition, among other things, API Platform under the hood does the following:
401402

402-
- Generated machine-readable documentations of the API in the
403-
[OpenAPI (formerly known as Swagger)](../core/openapi.md) (available at
404-
`http://127.0.0.1:8000/api/docs.json`) and
405-
[JSON-LD](https://json-ld.org)/[Hydra](https://www.hydra-cg.com) formats using this metadata
406-
- Generated nice human-readable documentation and a sandbox for the API with
407-
[SwaggerUI](https://swagger.io/tools/swagger-ui/) (Redoc is also available out-of-the-box)
403+
- Generated machine-readable documentations of the API in the
404+
[OpenAPI (formerly known as Swagger)](../core/openapi.md) (available at
405+
`http://127.0.0.1:8000/api/docs.json`) and
406+
[JSON-LD](https://json-ld.org)/[Hydra](https://www.hydra-cg.com) formats using this metadata
407+
- Generated nice human-readable documentation and a sandbox for the API with
408+
[SwaggerUI](https://swagger.io/tools/swagger-ui/) (Redoc is also available out-of-the-box)
408409

409410
## Interactions with the API
410411

0 commit comments

Comments
 (0)