Skip to content

Nested requests returning 404 #72

@therebelrobot

Description

@therebelrobot

So I have a json file that has the following schema:

{
  "environments": [
    {
      "id": 12,
      "reports": [
        {
          "id": 17
        },
        {
          "id": 25
        }
      ]
    },
    {
      "id": 19,
      "reports": [
        {
          "id": 22
        },
        {
          "id": 30
        }
      ]
    }
  ]
}

/environments works, as does /environments/12, so I figured I could use the route /environments/12/reports to return that array, but it's returning a 404 instead. Am I doing something wrong here?

My env:

  • Mac OS X Yosemite
  • NVM 0.24.0
  • io.js 1.8.1
  • json-server 0.7.3

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions