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
Add Angular generator to API-Platform client-generator.
With React, Vue.js and shortly coming React Native this could be the most comprehensive front app support for API-Platform
Hi all, I'm writing under this issue because I also was looking for an Angular generator.
I've just tried lysis on a project of mine but I got some errors:
Starting API 'http://localhost/api/docs.jsonld'...
Error for API 'http://localhost/api/docs.jsonld'
The class http://www.w3.org/ns/hydra/core#ApiDocumentation doesn't exist.
Did anyone manage to make it work recently?
In any case, I've started to work on a generator for Angular.
Is there a minimum set of features that should be present in the generator in order to merge that?
At the moment, I'm generating the following for each resource:
Interface class (the same as the typescript generator)
Service class: this handles getCollection,addItem,getItem,putItem,deleteItem operations
plus an utils file that handles some common stuff.
I also wanted to handle subresources, but it seems quite complicated to do with the current data that's parsed from the Hydra documentation. Does anyone from the maintainers know of an easy way to handle subresources?
Anyway, this is an example of generated files from a project of mine with the current generator:
@simocheccoli I'm not aware of any core member working on this (nor using Angular actually), but we'll be glad to merge a generator if the community contributes one!
@dunglas we are creating a dummy angular generator with @luca-nardelli 😄
We also want generate a simple material design template angular generator, maybe next week we can sumbit a pr
Activity
dunglas commentedon Sep 28, 2017
There is an existing community project: https://github.com/momenttech/lysis, see momenttech/lysis#1.
(ping @momenttech)
sbacem commentedon Oct 13, 2017
Any news for this ?
mysiar commentedon Oct 13, 2017
@sbacem you are more than welcome to develop this if you are interested
sbacem commentedon Oct 17, 2017
I am very interested, but i haven't time to do it 😞 😞
dunglas commentedon Oct 18, 2017
You can try https://github.com/momenttech/lysis
luca-nardelli commentedon Apr 16, 2019
Hi all, I'm writing under this issue because I also was looking for an Angular generator.
I've just tried lysis on a project of mine but I got some errors:
Did anyone manage to make it work recently?
In any case, I've started to work on a generator for Angular.
Is there a minimum set of features that should be present in the generator in order to merge that?
At the moment, I'm generating the following for each resource:
plus an
utils
file that handles some common stuff.I also wanted to handle subresources, but it seems quite complicated to do with the current data that's parsed from the Hydra documentation. Does anyone from the maintainers know of an easy way to handle subresources?
Anyway, this is an example of generated files from a project of mine with the current generator:
Resource Interface:
Resource service:
Utils file:
simocheccoli commentedon Apr 20, 2021
Hi @dunglas, is there the possibility that this angular generator will be developed by core members?
dunglas commentedon Apr 20, 2021
@simocheccoli I'm not aware of any core member working on this (nor using Angular actually), but we'll be glad to merge a generator if the community contributes one!
simocheccoli commentedon Apr 21, 2021
@dunglas we can try it! maybe with @luca-nardelli helps
simocheccoli commentedon May 7, 2021
@dunglas we are creating a dummy angular generator with @luca-nardelli 😄
We also want generate a simple material design template angular generator, maybe next week we can sumbit a pr
krstns commentedon Apr 7, 2022
Hello. Are there any updates on this?
dunglas commentedon Apr 8, 2022
No, but a contribution is still very welcome.
simocheccoli commentedon Aug 9, 2022
@dunglas @krstns we are still working about it
3 remaining items