Skip to content

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

Closed

Description

@cgole

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

Activity

  1. cgole commented on Jun 7, 2016

    @cgole
    MemberAuthor

    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

  2. davidcheung commented on Jun 7, 2016

    @davidcheung
    Contributor

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

  3. sidewaiise commented on Jul 21, 2016

    @sidewaiise

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

  4. sebastianhaas commented on Dec 22, 2016

    @sebastianhaas

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

  5. flvndvd commented on Mar 29, 2017

    @flvndvd

    Hey,

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

    @bajtos any updates planned on this issue ?

  6. flvndvd commented on Mar 29, 2017

    @flvndvd
  7. stale commented on Aug 23, 2017

    @stale

    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.

  8. stale commented on Sep 6, 2017

    @stale

    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.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

No one assigned

    Labels

    Type

    No type

    Projects

    No projects

      Milestone

      No milestone

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions