mean-expert-official / loopback-sdk-builder

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

generated api issue #606

Open abbasShaaban opened 6 years ago

abbasShaaban commented 6 years ago

What type of issue are you creating?

What version of this module are you using?

Write other if any:

I have a model called category and another model called Type, the category belongTo a Type. I wanted to query the categories of a certain type. The generated sdk have the following api:

/**

This api, which what I need, ask for a categoryId which doesn't make sense, like how this api is supposed to query the categories of certain type as it says "Queries categories of Type." and it asks for a categoyId

dreamdevil00 commented 6 years ago

what's your method code like?

Nosfistis commented 6 years ago

If the Type is public, then there should be an endpoint (and a generated function) for /type/:typeId/categories.

Please check your explorer API first.