Closed WillsterJohnson closed 2 years ago
Thank you for pointing this out, and for the detailed description!
Your guess is correct, that root-level time
field is leftover from a previous version of the API. We moved all the time info into the north
and south
objects since times can vary between months. More details at https://github.com/Nookipedia/nookipedia-api/issues/14.
I've updated the docs to remove the time
field.
Problem
EDIT: this applies to
/nh/bugs
and/nh/bugs/{bug}
too.When querying the
/nh/fish
or/nh/fish/{fish}
endpoints, seemingly with any params, there is no data for thetime
property.Looking on the docs, there should be;
Example
Code
Expected
An array of data following the form;
Actual
An array of data following the form;
Show data
```js [ { Anchovy: undefined }, { Angelfish: undefined }, { Arapaima: undefined }, { Arowana: undefined }, { 'Barred Knifejaw': undefined }, { Barreleye: undefined }, { Betta: undefined }, { Bitterling: undefined }, { 'Black Bass': undefined }, { Blowfish: undefined }, { 'Blue Marlin': undefined }, { Bluegill: undefined }, { 'Butterfly Fish': undefined }, { Carp: undefined }, { Catfish: undefined }, { Char: undefined }, { 'Cherry Salmon': undefined }, { 'Clown Fish': undefined }, { Coelacanth: undefined }, { Crawfish: undefined }, { 'Crucian Carp': undefined }, { Dab: undefined }, { Dace: undefined }, { Dorado: undefined }, { 'Football Fish': undefined }, { 'Freshwater Goby': undefined }, { Frog: undefined }, { Gar: undefined }, { 'Giant Snakehead': undefined }, { 'Giant Trevally': undefined }, { 'Golden Trout': undefined }, { Goldfish: undefined }, { 'Great White Shark': undefined }, { Guppy: undefined }, { 'Hammerhead Shark': undefined }, { 'Horse Mackerel': undefined }, { Killifish: undefined }, { 'King Salmon': undefined }, { Koi: undefined }, { Loach: undefined }, { 'Mahi-Mahi': undefined }, { 'Mitten Crab': undefined }, { 'Moray Eel': undefined }, { Napoleonfish: undefined }, { 'Neon Tetra': undefined }, { 'Nibble Fish': undefined }, { Oarfish: undefined }, { 'Ocean Sunfish': undefined }, { 'Olive Flounder': undefined }, { 'Pale Chub': undefined }, { Pike: undefined }, { Piranha: undefined }, { 'Pond Smelt': undefined }, { 'Pop-Eyed Goldfish': undefined }, { 'Puffer Fish': undefined }, { Rainbowfish: undefined }, { 'Ranchu Goldfish': undefined }, { Ray: undefined }, { 'Red Snapper': undefined }, { 'Ribbon Eel': undefined }, { 'Saddled Bichir': undefined }, { Salmon: undefined }, { 'Saw Shark': undefined }, { 'Sea Bass': undefined }, { 'Sea Butterfly': undefined }, { 'Sea Horse': undefined }, { 'Snapping Turtle': undefined }, { 'Soft-Shelled Turtle': undefined }, { Squid: undefined }, { Stringfish: undefined }, { Sturgeon: undefined }, { Suckerfish: undefined }, { Surgeonfish: undefined }, { Sweetfish: undefined }, { Tadpole: undefined }, { Tilapia: undefined }, { Tuna: undefined }, { 'Whale Shark': undefined }, { 'Yellow Perch': undefined }, { 'Zebra Turkeyfish': undefined } ] ```What this means
The
time
property is not being set, or is being set to None/null/undefined by the API.The part where I guess what's wrong and am probably off by a mile
I'd guess this is a remnant of a previous version of the API where instead of monthly time data for the hemispheres, it was just a single datapoint. Unless this was never a thing, then I'd guess I'm wrong.
Either that or it's just a mistake in the docs, an accident in the schema, something like that.