loopback-sdk-builder icon indicating copy to clipboard operation
loopback-sdk-builder copied to clipboard

Are there plans to support Loopback 4?

Open ShlomoRosenheimer opened this issue 6 years ago • 7 comments

What type of issue are you creating?

  • [ ] Bug
  • [ ] Enhancement
  • [ x] Question

What version of this module are you using?

  • [x ] 2.0.10 (Stable)
  • [ ] 2.1.0-rc.n (2.1 Release Candidate n)
  • [ ] Other

Write other if any:

Please add a description for your issue:

Are there any plans to support Loopback 4?

ShlomoRosenheimer avatar Nov 02 '18 11:11 ShlomoRosenheimer

Does not seem so, but on the bright side Loopback 4 is supposed to support OpenAPI so you could generate the sdk using OpenAPI Tools

dmastag avatar Nov 03 '18 07:11 dmastag

Does that mean loopback-sdk-builder is sunsetted? Seems like a shame.

(might take a while, Loopback4 looks good but still has some work to do, to be production; specifically authentication and authorization on the roadmap, as near as I can tell.)

== John ==

jgwinner avatar Jan 20 '19 19:01 jgwinner

it would be a dream, i hope loopback creates a build in sdk builder

isrmicha avatar Mar 10 '19 03:03 isrmicha

It's really essential. However, as Mean-expert-official seems to be somewhat sunsetted itself, not sure if anyone here will.

I had some massive problems getting the original SDK to work; it never generated any of the loopback models for get/set, just patch and other weird verbs. Maybe that's what it's supposed to do? Very few samples for connecting with Angular or any client side. So I massively edited the SDK builder to do something simple. Probably messed it up, but it's working for us. The code isn't pretty though.

I wouldn't mind creating a supported version of it, at some point, but we won't have time for another month or two.

    == John ==

jgwinner avatar Mar 10 '19 03:03 jgwinner

Thank you @dmastag for that wonderful hint!

I managed to set up something very simple based on OpenApiTools since it now supports typescript angular.

I created a sample project to illustrate my idea. Read the Readme for more details.

I think this could do the same job for loopback 4 as @mean-expert-official/loopback-sdk-builder did for loopback 3.

What do you think?

joschne avatar Oct 31 '19 17:10 joschne

Another example based on looback 4 todo-list

joschne avatar Nov 01 '19 14:11 joschne

Look at Loopback 4 documentation Building an Angular Application from OpenAPI Specification which shows how to generate an OpenAPI spec JSON file and then generate models for the Angular application.

jbratu avatar Jun 15 '21 17:06 jbratu