Skip to content

Commit f228e1d

Browse files
dunglasalanpoulain
authored andcommitted
GraphQL: use the default port (#545)
* GraphQL: use the default port * Commands in the context of the distribution by default
1 parent fd22f7d commit f228e1d

File tree

2 files changed

+7
-3
lines changed

2 files changed

+7
-3
lines changed

core/graphql.md

Lines changed: 4 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -14,9 +14,11 @@ Once enabled, you have nothing to do: your schema describing your API is automat
1414

1515
To enable GraphQL and GraphiQL interface in your API, simply require the [graphql-php](https://webonyx.github.io/graphql-php/) package using Composer and clear the cache one more time:
1616

17-
$ composer require webonyx/graphql-php && bin/console cache:clear
17+
```bash
18+
docker-compose exec php composer req webonyx/graphql-php && bin/console cache:clear
19+
```
1820

19-
You can now use GraphQL at the endpoint: `http://localhost/graphql`.
21+
You can now use GraphQL at the endpoint: `https://localhost:8443/graphql`.
2022

2123
## GraphiQL
2224

distribution/index.md

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -646,7 +646,9 @@ ISBN isn't valid...
646646
Isn't API Platform a REST **and** GraphQL framework? That's true! GraphQL support isn't enabled by default, to add it we
647647
need to install the [graphql-php](https://webonyx.github.io/graphql-php/) library. Run the following command (the cache needs to be cleared twice):
648648

649-
$ docker-compose exec php composer req webonyx/graphql-php && bin/console cache:clear
649+
```bash
650+
docker-compose exec php composer req webonyx/graphql-php && bin/console cache:clear
651+
```
650652

651653
You now have a GraphQL API! Open `https://localhost:8443/graphql` to play with it using the nice [GraphiQL](https://github.com/graphql/graphiql)
652654
UI that is shipped with API Platform:

0 commit comments

Comments
 (0)