Juriy / swapi

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

Starships/Vehicles/Planets skip first element #49

Open jkingster opened 2 years ago

jkingster commented 2 years ago

It seems the first element of starships is missing, not sure if intentional or not.

Tested Routes: https://swapi.dev/api/starships/1/?format=json https://swapi.dev/api/starships/1/

It seems when doing the ALL route: https://swapi.dev/api/starships/

It returns the first element: CR90 corvette under index 0.

However this does not exist under the 1 ID, it exists under 2: https://swapi.dev/api/starships/2/?format=json

Is this intended behavior?

jkingster commented 2 years ago

After checking out vehicles, it seems the first 1-3 elements are skipped and the first actual element is under 4. https://swapi.dev/api/vehicles/4/?format=json This also applies to the resource planets as well. ;/