Juriy / swapi

SWAPI - Star Wars API service
https://swapi.dev
BSD 3-Clause "New" or "Revised" License
286 stars 91 forks source link

/api/<resource>/schema queries return 404 NOT FOUND error #37

Open victormalets opened 3 years ago

victormalets commented 3 years ago

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:

{
    "detail": "Not found"
}

This behavior is actual for all resources:

I was hoping maybe you could help with that.

sekunho commented 2 years ago

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

victormalets commented 2 years ago

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!

bcr commented 9 months ago

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.)

→ People Schema
  GET http://swapi.dev/api/people/schema/ [404 NOT FOUND, 311B, 407ms]
  1. Status code is 200

→ Species Schema
  GET http://swapi.dev/api/species/schema/ [404 NOT FOUND, 311B, 485ms]
  2. Status code is 200

→ Vehicles Schema
  GET http://swapi.dev/api/vehicles/schema/ [404 NOT FOUND, 311B, 418ms]
  3. Status code is 200

→ Starships Schema
  GET http://swapi.dev/api/starships/schema/ [404 NOT FOUND, 311B, 408ms]
  4. Status code is 200

→ Films Schema
  GET http://swapi.dev/api/films/schema/ [404 NOT FOUND, 311B, 401ms]
  5. Status code is 200

→ Planets Schema
  GET http://swapi.dev/api/planets/schema/ [404 NOT FOUND, 311B, 540ms]
  6. Status code is 200