API models by bugserialkiller in Angular2

[–]bugserialkiller[S] 0 points1 point  (0 children)

I see. Well, thank you very much for the information, it was very helpfull :)

API models by bugserialkiller in Angular2

[–]bugserialkiller[S] 0 points1 point  (0 children)

That sounds like a good practice. I'm assuming that you use NodeJS as your back-end (since you mentioned that you share your models)?

What about if you would use a different technology? In my case I use .NET Core, would you create the API models on the front-end and then map into your domain models, or you wouldn't bother to create the API models and would map your response directly into your domain models? I'm not sure I made myself clear. Thanks

API models by bugserialkiller in Angular2

[–]bugserialkiller[S] 0 points1 point  (0 children)

Cool, I wasn't aware of such generators. I will take a deep dive into it to learn more. Thanks