-
Notifications
You must be signed in to change notification settings - Fork 92
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
/api/<resource>/schema queries return 404 NOT FOUND error #37
Comments
I don't know why it's not working, but you can find the schema descriptions here: https://github.com/Juriy/swapi/tree/master/resources/schemas |
Thank you! |
The `Film` and `Character` types were generated with an NPM package (`json-schema-to-typescript`), using metadata from SWAPI. While the schema endpoints are currently broken (see GitHub issue), the relevant JSON schema files are readily available from the projects repository (see links below). I chose not to include the aforementioned NPM package because adding any sort of codegen tooling felt like overkill :) LINKS: - Juriy/swapi#37 (GH issue outlining a problem with the `../<resource_name>/schema/` endpoints referred to in the SWAPI documentation) - https://www.npmjs.com/package/json-schema-to-typescript (JSON schema to TypeScript transformer) - https://github.com/phalt/swapi/tree/master/resources/schemas (where I got the SWAPI JSON schema files)
I have created a Postman Star Wars API Collection that largely follows the Python unit tests. Can confirm, the /schema/ path for all of the entities does not work (returns 404.)
|
Hello!
I've noticed that all /api//schema queries return the 404 NOT FOUND error.
For example,
curl --location --request GET 'https://swapi.dev/api/people/schema'
returns this body and 404th status code:This behavior is actual for all resources:
I was hoping maybe you could help with that.
The text was updated successfully, but these errors were encountered: