Nookipedia / nookipedia-api

Nookipedia's custom API for querying data from the Animal Crossing video game series.
https://api.nookipedia.com/
MIT License
40 stars 12 forks source link

New Horizons Item endpoints #45

Closed Micalobia closed 3 years ago

Micalobia commented 3 years ago

Adds endpoints for tools, clothing, photos, and furniture (#21). Not a complete PR yet, there are a few small details to work out.

Firstly, should the width, height, and length fields be excluded from the photo endpoints? It doesn't have any data in the cargo tables, although that might change in the future.

Secondly, items all have variations included with them. Within those variations are a color1 column and a color2 column. There are a few ways to handle them: 1) Keep them as they are 2) Rename them to primary_color and secondary_color 3) Generate a colors list from them (the standard way to handle things similar) 4) Generate a colors list, but make it a set (remove duplicates) 5) Same as 3, but remove None as an option for a color 6) Same as 4, but remove None as an option for a color

As of right now, it's handled like in option 3

KevinPayravi commented 3 years ago

Thank you both!