Skip to content

Commit 18d2edc

Browse files
committed
Merge branch '2.3' into 2.4
2 parents d60cec7 + c5bb9e0 commit 18d2edc

File tree

3 files changed

+5
-3
lines changed

3 files changed

+5
-3
lines changed

admin/getting-started.md

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -27,7 +27,9 @@ Edit the `src/App.js` file the following way:
2727
import React from 'react';
2828
import { HydraAdmin } from '@api-platform/admin';
2929

30-
export default () => <HydraAdmin entrypoint="https://demo.api-platform.com"/>; // Replace with your own API entrypoint
30+
// Replace with your own API entrypoint: if https://example.com/api/books is the path
31+
// to the collection of book resources, then the entrypoint is https://example.com/api
32+
export default () => <HydraAdmin entrypoint="https://demo.api-platform.com"/>;
3133
```
3234

3335
Be sure to make your API send proper [CORS HTTP headers](https://developer.mozilla.org/en-US/docs/Web/HTTP/CORS) to allow

core/errors.md

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -26,7 +26,7 @@ final class ProductNotFoundException extends \Exception
2626

2727
```php
2828
<?php
29-
// api/src/EventSubscriber/CartManager.php
29+
// api/src/EventSubscriber/ProductManager.php
3030

3131
namespace App\EventSubscriber;
3232

core/swagger.md

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -44,7 +44,7 @@ the `GET` operation of `/foos` path.
4444
# api/config/services.yaml
4545
services:
4646
'App\Swagger\SwaggerDecorator':
47-
decorates: 'api_platform.swagger.normalizer.documentation'
47+
decorates: 'api_platform.swagger.normalizer.api_gateway'
4848
arguments: [ '@App\Swagger\SwaggerDecorator.inner' ]
4949
autoconfigure: false
5050
```

0 commit comments

Comments
 (0)