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
You can now hack in the cloned repository of `client-generator`. If you want to test your work, a `lib/index.js` file containing your last changes will be created each time you invoke `yarn build`. You can also use `yarn watch` to make it created each time a change is performed in your code!
34
+
You can now hack in the cloned repository of `create-client`. If you want to test your work, a `lib/index.js` file containing your last changes will be created each time you invoke `yarn build`. You can also use `yarn watch` to make it created each time a change is performed in your code!
35
35
36
36
### Testing your changes
37
37
@@ -55,7 +55,7 @@ $ yarn test
55
55
56
56
### Matching coding standards
57
57
58
-
The API Platform Client Generator project is inspired by the [Airbnb JavaScript style guide](https://github.com/airbnb/javascript).
58
+
The style of the project is inspired by the [Airbnb JavaScript style guide](https://github.com/airbnb/javascript).
59
59
But don't worry, you can fix CS issues automatically using [ESLint](https://eslint.org/) tool:
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:
6
+
API Platform Create Client is a generator to scaffold apps 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:
7
7
8
8
* Next.js
9
9
* Nuxt
@@ -18,7 +18,7 @@ Works especially well with APIs built with the [API Platform](https://api-platfo
18
18
19
19
## Documentation
20
20
21
-
The documentation of API Platform's Client Generator can be browsed [on the official website](https://api-platform.com/docs/client-generator).
21
+
The documentation of API Platform Create Client can be browsed [on the official website](https://api-platform.com/docs/create-client).
22
22
23
23
## Features
24
24
@@ -27,27 +27,28 @@ The documentation of API Platform's Client Generator can be browsed [on the offi
27
27
* Creation form
28
28
* Editing form
29
29
* Deletion button
30
-
* Use the Hydra or OpenAPI documentations to generate the code
31
-
* Generate the suitable HTML5 input type (`number`, `date`...) according to the type of the API property
30
+
* Use the Hydra or OpenAPI documentation to generate the code
31
+
* Generate the suitable input type (`number`, `date`...) according to the type of the API property
32
32
* Display of the server-side validation errors under the related input (if using API Platform Core)
33
33
* Client-side validation (`required` attributes)
34
34
* The generated HTML is compatible with [Bootstrap](https://getbootstrap.com/) and includes mandatory classes
35
35
* The generated HTML code is accessible to people with disabilities ([ARIA](https://www.w3.org/WAI/intro/aria) support)
36
+
* Bring your own templates
36
37
37
38
## Usage
38
39
39
40
### Hydra
40
41
41
-
npx @api-platform/client-generator https://demo.api-platform.com/ output/ --resource Book
42
+
npm init @api-platform/client https://demo.api-platform.com/ output/ --resource Book
42
43
43
44
### OpenAPI 3
44
45
45
-
npx @api-platform/client-generator https://demo.api-platform.com/docs.json output/ --resource Book --format openapi3
46
+
npm init @api-platform/client https://demo.api-platform.com/docs.json output/ --resource Book --format openapi3
46
47
47
48
## Credits
48
49
49
50
Created by [Kévin Dunglas](https://dunglas.fr).
50
51
51
52
Sponsored by [Les-Tilleuls.coop](https://les-tilleuls.coop).
0 commit comments