File tree Expand file tree Collapse file tree 3 files changed +5
-3
lines changed Expand file tree Collapse file tree 3 files changed +5
-3
lines changed Original file line number Diff line number Diff line change @@ -27,7 +27,9 @@ Edit the `src/App.js` file the following way:
27
27
import React from ' react' ;
28
28
import { HydraAdmin } from ' @api-platform/admin' ;
29
29
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" / > ;
31
33
```
32
34
33
35
Be sure to make your API send proper [ CORS HTTP headers] ( https://developer.mozilla.org/en-US/docs/Web/HTTP/CORS ) to allow
Original file line number Diff line number Diff line change @@ -26,7 +26,7 @@ final class ProductNotFoundException extends \Exception
26
26
27
27
``` php
28
28
<?php
29
- // api/src/EventSubscriber/CartManager .php
29
+ // api/src/EventSubscriber/ProductManager .php
30
30
31
31
namespace App\EventSubscriber;
32
32
Original file line number Diff line number Diff line change @@ -44,7 +44,7 @@ the `GET` operation of `/foos` path.
44
44
# api/config/services.yaml
45
45
services :
46
46
' App\Swagger\SwaggerDecorator ' :
47
- decorates : ' api_platform.swagger.normalizer.documentation '
47
+ decorates : ' api_platform.swagger.normalizer.api_gateway '
48
48
arguments : [ '@App\Swagger\SwaggerDecorator.inner' ]
49
49
autoconfigure : false
50
50
` ` `
You can’t perform that action at this time.
0 commit comments