Skip to content

Commit 77a86ef

Browse files
committed
fix(laravel): escape local URLs
1 parent e6b2569 commit 77a86ef

File tree

1 file changed

+4
-4
lines changed

1 file changed

+4
-4
lines changed

laravel/index.md

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -49,7 +49,7 @@ composer require api-platform/laravel:^4
4949

5050
If it's not already done, run `php artisan serve` to start the built-in web server.
5151

52-
Open http://127.0.0.1:8000/api/, your API is already active and documented... but empty!
52+
Open `http://127.0.0.1:8000/api/`, your API is already active and documented... but empty!
5353

5454
![Empty docs](images/empty-docs.png)
5555

@@ -118,7 +118,7 @@ namespace App\Models;
118118
}
119119
```
120120

121-
Open http://127.0.0.1:8000/api/, tadam, your API is ready and **entirely functionnal** 🎉:
121+
Open `http://127.0.0.1:8000/api/`, tadam, your API is ready and **entirely functionnal** 🎉:
122122

123123
![Basic REST API](images/basic-rest.png)
124124

@@ -128,7 +128,7 @@ Under the hood, API Platform:
128128

129129
1. Registered the standard REST routes in Laravel's router and a controller that implements a state-of-the-art, fully-featured, and secure API endpoint using the services provided by the [API Platform Core library](../core/index.md)
130130
2. Used its built-in Eloquent [state provider](../core/state-providers.md) to introspect the database and gather metadata about all columns to expose through the API
131-
3. Generated machine-readable documentations of the API in the [OpenAPI (formerly known as Swagger)](../core/openapi.md) (available at http://127.0.0.1:8000/api/docs.json) and [JSON-LD](https://json-ld.org)/[Hydra](https://www.hydra-cg.com) formats using this metadata
131+
3. Generated machine-readable documentations of the API in the [OpenAPI (formerly known as Swagger)](../core/openapi.md) (available at `http://127.0.0.1:8000/api/docs.json`) and [JSON-LD](https://json-ld.org)/[Hydra](https://www.hydra-cg.com) formats using this metadata
132132
4. Generated nice human-readable documentation and a sandbox for the API with [SwaggerUI](https://swagger.io/tools/swagger-ui/) (Redoc is also available out-of-the-box)
133133

134134
Imagine doing it all again, properly, by hand? How much time have you saved? Weeks, months? And you've seen nothing yet!
@@ -427,7 +427,7 @@ php artisan db:seed
427427
428428
### Configuring The Pagination
429429

430-
Send a `GET` request on http://127.0.0.1:8000/api/books.
430+
Send a `GET` request on `http://127.0.0.1:8000/api/books`.
431431

432432
By default, API Platform paginates collections by slices of 30 items.
433433

0 commit comments

Comments
 (0)