laravel-generator icon indicating copy to clipboard operation
laravel-generator copied to clipboard

[Feature]: API-Platform client-generator

Open noud opened this issue 4 years ago • 2 comments

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 avatar Jan 06 '21 00:01 noud

@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 avatar Jan 07 '21 01:01 mitulgolakiya

@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'.

noud avatar Jan 07 '21 06:01 noud