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
API Platform Client Generator is a generator to scaffold app with Create-Retrieve-Update-Delete features for any API exposing a Hydra or Swagger documentation for:
7
+
API Platform Client Generator is a generator to scaffold app with Create-Retrieve-Update-Delete features for any API exposing a [Hydra](http://www.hydra-cg.com/spec/latest/core/) or [OpenAPI](https://www.openapis.org/) documentation for:
8
8
* React/Redux
9
9
* React Native
10
10
* Vue.js
@@ -22,12 +22,18 @@ The documentation of API Platform's Client Generator can be browsed [on the offi
22
22
npx @api-platform/client-generator https://demo.api-platform.com/ output/ --resource Book
23
23
```
24
24
25
-
**OpenAPI** (experimental)
25
+
**OpenAPI v2 (formerly known as Swagger)** (experimental)
26
26
```sh
27
27
npx @api-platform/client-generator https://demo.api-platform.com/docs.json output/ --resource Book --format swagger
28
28
```
29
29
30
-
**Swagger** (experimental)
30
+
or
31
+
32
+
```sh
33
+
npx @api-platform/client-generator https://demo.api-platform.com/docs.json output/ --resource Book --format openapi2
34
+
```
35
+
36
+
**OpenAPI v3** (experimental)
31
37
```sh
32
38
npx @api-platform/client-generator https://demo.api-platform.com/docs.json?spec_version=3 output/ --resource Book --format openapi3
0 commit comments