Skip to content

API does not respond to queries; tutorial cannot be followed #384

Description

@MichaelMarkieta

Expected behavior

Requesting data on /1.0/library/books should return a collection of books

Actual behavior

Requesting data on /1.0/library/books returns a 404 Not Found

Steps to reproduce the problem

Followed the tutorial here: https://docs.dadi.tech/api#creating-an-api. I am able to retrieve an authentication token but not any API data. Note that I am using all of the defaults from the creation wizard, except:

  • http (80)
  • filestore (json)

Also, GET /api/collections

{
  "collections": [
    {
      "version": "vjoin",
      "database": "testdb",
      "name": "books",
      "slug": "books",
      "path": "/vjoin/testdb/books"
    },
    {
      "version": "vjoin",
      "database": "testdb",
      "name": "users",
      "slug": "users",
      "path": "/vjoin/testdb/users"
    },
    {
      "version": "vtest",
      "database": "testdb",
      "name": "test-schema",
      "slug": "test-schema",
      "path": "/vtest/testdb/test-schema"
    }
  ],
  "media": {
    "buckets": [
      "mediaStore"
    ],
    "defaultBucket": "mediaStore"
  }
}

Package details

Package version, operating system, etc

$ dadi api -v
2.1.4

$ node -v
v8.9.1

$ sw_vers -productVersion 
10.13.2

Activity

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

    No labels
    No labels

    Type

    No type

    Projects

    No projects

      Milestone

      No milestone

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions