mean-expert-official / loopback-sdk-builder

Tool for auto-generating Software Development Kits (SDKs) for LoopBack
Other
399 stars 178 forks source link

Only PATCH methods #636

Open jgwinner opened 5 years ago

jgwinner commented 5 years ago

What type of issue are you creating?

What version of this module are you using?

Write other if any: 2.1.2

Please add a description for your issue:

I'm looking at service.ejs, and note that there's code there to generate GET, PUT, UPSERT, etc. verbs.

My Loopback API is fairly generic and absolutely does have full API capability, including get, put, etc.

Yet the generated code ONLY has the Patch method.

I was very confused. There's very little documentation on how to use these API's, for example in Angular, to obtain current values; I start to implement 'GET' verbs, then notice that they should be generated, I think.

Does anyone have any ideas, or is this project dead?

Seems to be related to https://github.com/mean-expert-official/loopback-sdk-builder/issues/608

Is only Loopback 2 supported? That would have been good to know.

    == John ==
jgwinner commented 5 years ago

Anyone?

I had to get rid of Loopback, and would really like some of the capabilities.

I tried hacking the code but it's not obvious why the methods aren't getting into the inner loop. The generated API certainly allows GET, PUT, etc.

Just not the loopback-sdk

    == John ==
jgwinner commented 5 years ago

I know the main maintainer's abandoned this project to work on another project (which seems abandoned too, I hope everything is OK), but this is a serious problem. No one has any ideas? Is it a MySQL connector issue? If I write my own methods everything works fine.

    == John ==