laravel-generator
laravel-generator copied to clipboard
[Feature]: API-Platform client-generator
Description
Generate React/Redux client against an InfyOm Laravel Generator API end-point. Still generate against an API-Platform API end-point. And sanitize front end urls.
InfyOm Laravel Generator API end-points are (plain) JSON Swagger, no JSON-LD no Hydra.
(todo: React Native against an InfyOm Laravel Generator API end-point.)
I like input on this all, so this issue, and will move to a pull request to client-generator.
Example
see my patches https://github.com/api-platform/client-generator/compare/master...noud:swagger
a generated front end against an InfyOm Laravel Generator API end-point: https://github.com/noud/react-swagger-laravel-api-platform-demo generated front ends against an API-Platform API end-point: https://github.com/noud/react-openapi-api-platform-demo https://github.com/noud/react-native-openapi-api-platform-demo
the back end data using InfyOm Laravel Generator: https://github.com/noud/laravel-api-platform-demo the back end having InfyOm Laravel Generator: https://github.com/noud/laravel-api-platform
i opened a related issue at: https://github.com/api-platform/client-generator/issues/251
@noud I'm not react expert, so not can give comments here. I will keep this issue open for few days if someone shares his/her feedback.
@mitulgolakiya as you see at https://github.com/api-platform/client-generator it gives multiple client types:
- Quasar Framework
- Next.js
- React/Redux
- React Native
- TypeScript Interfaces
- Vue.js
- Vuetify.js
React/Redux was my pick for a 'proof of concept'.