Skip to content

nestRemoting does not appear #167

Description

@lughino

I added a layer to the rest api but this does not appear in the component explorer.

// member.json
"relations": {
    "corporates": {
      "type": "hasMany",
      "model": "Corporate",
      "foreignKey": "",
      "options": {
        "validate": true,
        "forceId": false
      }
    },
   ...
}

// corporate.json
"relations": {
    "contests": {
      "type": "hasMany",
      "model": "Contest",
      "foreignKey": "",
      "options": {
        "validate": true,
        "forceId": false
      }
    },
    "member": {
      "type": "belongsTo",
      "model": "Member",
      "foreignKey": "",
      "options": {
        "validate": true,
        "forceId": false
      }
    }
  },

// in boot script
Member.nestRemoting('corporates');

Now I can make calls, eg with postman, like this:

/api/Members/<memberid>/corporates/<corporateid>/contests

But in the component explorer these routes are not displayed.
It's a bug? If not it would be very nice as a new feature!

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions