Join GitHub today
GitHub is home to over 31 million developers working together to host and review code, manage projects, and build software together.
Sign upAPI does not respond to queries; tutorial cannot be followed #384
Comments
MichaelMarkieta
closed this
Jan 16, 2018
MichaelMarkieta
reopened this
Jan 16, 2018
This comment has been minimized.
This comment has been minimized.
Hi @MichaelMarkieta, Thanks for the issue report. I have seen this myself recently, and believe it is due to a default setting in the configuration that tells API where to find your custom collections/endpoints. Can you please try adding this to your configuration file: "paths": {
"collections": "workspace/collections",
"endpoints": "workspace/endpoints",
"hooks": "workspace/hooks"
} This assumes you have the following directories under "workspace":
Just remove any from the "paths" setting if you don't have them. |
This comment has been minimized.
This comment has been minimized.
So the CLI does not generate a
I should note that the tutorial does not follow the default collections schema in the latest API repo... |
This comment has been minimized.
This comment has been minimized.
WendySanarwanto
commented
Jan 17, 2018
•
|
This comment has been minimized.
This comment has been minimized.
Hi @WendySanarwanto. Can you just confirm that the issue has been resolved once you added Thanks! |
MichaelMarkieta commentedJan 16, 2018
Expected behavior
Requesting data on
/1.0/library/books
should return a collection of booksActual behavior
Requesting data on
/1.0/library/books
returns a 404 Not FoundSteps 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:
Also,
GET /api/collections
Package details
Package version, operating system, etc