项目
在 GitHub 查看
api-platform/create-client
关于
Generate React or Vue.js-based Progressive Web Apps from an Hydra-enabled API. Also support React Native.
网站与应用开发可以做什么
- Deletion button
- Use the Hydra or OpenAPI documentation to generate the code
- Generate the suitable input type (number, date...) according to the type of the API property
- Display of the server-side validation errors under the related input (if using API Platform Core)
实测星标增长
- 24小时
- 0
- 7天
- 0
- 15天
- -1
- 1个月
- 正在收集历史
各周期内的星标净变化,周期相互重叠,并非每日新增。缺失的测量保持空白。星标代表关注度,不代表软件质量。
README.md
原文API Platform Create Client
API Platform Create Client is a generator to scaffold apps with Create-Retrieve-Update-Delete features for any API exposing a Hydra or OpenAPI documentation for:
- Next.js
- Nuxt
- Quasar
- React
- React Native
- TypeScript Interfaces
- Vue.js
- Vuetify.js
Works especially well with APIs built with the API Platform framework.
Documentation
The documentation of API Platform Create Client can be browsed on the official website.
Features
- Generate high-quality TypeScript or ES6 components:
- List view
- Creation form
- Editing form
- Deletion button
- Use the Hydra or OpenAPI documentation to generate the code
- Generate the suitable input type (
number,date...) according to the type of the API property - Display of the server-side validation errors under the related input (if using API Platform Core)
- Client-side validation (
requiredattributes) - The generated HTML is compatible with Bootstrap and includes mandatory classes
- The generated HTML code is accessible to people with disabilities (ARIA support)
- Bring your own templates
Usage
Hydra
npm init @api-platform/client https://demo.api-platform.com/ output/ --resource Book
Hint: If needed, you can customize the Hydra prefix using the -p or --hydra-prefix option (default: none).
OpenAPI 3
npm init @api-platform/client https://demo.api-platform.com/docs.json output/ --resource Book --format openapi3
Credits
Created by Kévin Dunglas.
Sponsored by Les-Tilleuls.coop.
Commercial support is available upon request.
探索相关项目
加载中…