You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
{{ message }}
Repository navigation
Nested API endpoints enabled using nestRemoting do not show up in loopback explorer #2409
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.
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.
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.
Activity
cgole commentedon Jun 7, 2016
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
davidcheung commentedon Jun 7, 2016
adding some info to this,
it shows up in
loopback:export-api-defbut nothttp://localhost:3000/explorer/swagger.jsonsidewaiise commentedon Jul 21, 2016
Also experiencing this. Would love a solution - makes debugging and verifying that nested queries are available (and working) through REST.
sebastianhaas commentedon Dec 22, 2016
I can confirm, it would be nice if there was a solution for this problem.
flvndvd commentedon Mar 29, 2017
Hey,
Some news regarding this issue ? It's something that will be very helpful...
@bajtos any updates planned on this issue ?
flvndvd commentedon Mar 29, 2017
See strongloop/loopback-component-explorer#208
stale commentedon Aug 23, 2017
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 commentedon Sep 6, 2017
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
CODEOWNERSfile at the top-level of this repository.