Closed srinivasskc closed 7 years ago
Well, the starship and vehicle resource just don't exist. That's 100% normal HTTP behaviour.
As for the others, I think it is a just DRF being weird with the header in the browser view.
If you curl it they are there:
http https://swapi.co/api/films/schema
HTTP/1.1 200 OK
CF-RAY: 38aa8ff0ff21356c-LHR
Connection: keep-alive
Content-Encoding: gzip
Content-Type: application/json
Date: Mon, 07 Aug 2017 13:25:30 GMT
Etag: W/"c36cc9fe95f1fa4de8a7c698630ab6c0"
Server: cloudflare-nginx
Set-Cookie: __cfduid=d48770dab0b87dcfe9172514bc6fa65ae1502112330; expires=Tue, 07-Aug-18 13:25:30 GMT; path=/; domain=.swapi.co; HttpOnly
Transfer-Encoding: chunked
Via: 1.1 vegur
X-Frame-Options: SAMEORIGIN
{
"$schema": "http://json-schema.org/draft-04/schema",
"description": "A Star Wars film",
"properties": {
"characters": {
"description": "The people resources featured within this film.",
"type": "array"
},
"created": {
"description": "The ISO 8601 date format of the time that this resource was created.",
"format": "date-time",
"type": "string"
},
"director": {
"description": "The director of this film.",
"type": "string"
},
"edited": {
"description": "the ISO 8601 date format of the time that this resource was edited.",
"format": "date-time",
"type": "string"
...
Many API Requests are throwing 404 Error.
https://swapi.co/api/species/schema/
https://swapi.co/api/films/schema/
https://swapi.co/api/vehicles/1/
https://swapi.co/api/vehicles/schema/
https://swapi.co/api/starships/1