You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
If it's not already done, run `php artisan serve` to start the built-in web server.
51
51
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!
53
53
54
54

55
55
@@ -118,7 +118,7 @@ namespace App\Models;
118
118
}
119
119
```
120
120
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** 🎉:
122
122
123
123

124
124
@@ -128,7 +128,7 @@ Under the hood, API Platform:
128
128
129
129
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)
130
130
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
132
132
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)
133
133
134
134
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
427
427
428
428
### Configuring The Pagination
429
429
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`.
431
431
432
432
By default, API Platform paginates collections by slices of 30 items.
0 commit comments