Skip to content

Commit 7ab699f

Browse files
committed
Added mention about OpenAPI
1 parent 495e9c4 commit 7ab699f

File tree

1 file changed

+13
-0
lines changed

1 file changed

+13
-0
lines changed

docs/api/rest_api/rest_api_usage/rest_api_usage.md

Lines changed: 13 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -11,6 +11,19 @@ Every interaction with the repository than you can do from back office or by usi
1111

1212
The REST API uses HTTP methods (such as `GET` and `PUBLISH`), and HTTP headers to specify the type of request.
1313

14+
## OpenAPI support
15+
16+
The REST API is built on top of [API Platform](https://api-platform.com/docs/symfony/) and meets the [OpenAPI](https://www.openapis.org/) standard.
17+
18+
You can downlaod the OpenAPI specification from the [REST API Reference](/api/rest_api/rest_api_reference/rest_api_reference.html), or generate it for your project by running one of the command below:
19+
20+
``` bash
21+
php bin/console ibexa:openapi --output=spec.json # JSON output
22+
php bin/console ibexa:openapi --yaml --output=spec.yaml # YAML output
23+
```
24+
25+
With the specification file you can use the [available OpenAPI tools](https://tools.openapis.org/) to work faster with the API, for example, by generating libraries and clients for the API.
26+
1427
## URIs
1528

1629
The REST API is designed in such a way that the client can explore the Repository without constructing any URIs to resources.

0 commit comments

Comments
 (0)