loopback icon indicating copy to clipboard operation
loopback copied to clipboard

Nested API endpoints enabled using nestRemoting do not show up in loopback explorer

Open cgole opened this issue 10 years ago • 8 comments

These endpoints show up in API Designer explorer but not in loopback explorer

cgole avatar Jun 07 '16 17:06 cgole

I have 3 models bank, account, transaction bank hasMany accounts accounts belongsTo bank account hasMany transactions transactions belongsTo account

$ cat server/boot/nested.js module.exports = function (server, done) { var Bank = server.models.bank; Bank.nestRemoting('accounts'); done() }

Start the app and check loopback explorer. You don't see nested API endpoints like these - GET /banks/{id}/accounts/{nk}/transactions/{fk} POST /banks/{id}/accounts/{nk}/transactions

but you see these in the APIConnect designer explorer.

Attaching my app - bank5.zip

cgole avatar Jun 07 '16 18:06 cgole

adding some info to this, it shows up in loopback:export-api-def but not http://localhost:3000/explorer/swagger.json

davidcheung avatar Jun 07 '16 18:06 davidcheung

Also experiencing this. Would love a solution - makes debugging and verifying that nested queries are available (and working) through REST.

sidewaiise avatar Jul 21 '16 02:07 sidewaiise

I can confirm, it would be nice if there was a solution for this problem.

sebastianhaas avatar Dec 22 '16 22:12 sebastianhaas

Hey,

Some news regarding this issue ? It's something that will be very helpful...

@bajtos any updates planned on this issue ?

flvndvd avatar Mar 29 '17 09:03 flvndvd

See strongloop/loopback-component-explorer#208

flvndvd avatar Mar 29 '17 13:03 flvndvd

This issue has been automatically marked as stale because it has not had recent activity. It will be closed if no further activity occurs. Thank you for your contributions.

stale[bot] avatar Aug 23 '17 15:08 stale[bot]

This issue has been closed due to continued inactivity. Thank you for your understanding. If you believe this to be in error, please contact one of the code owners, listed in the CODEOWNERS file at the top-level of this repository.

stale[bot] avatar Sep 06 '17 15:09 stale[bot]