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
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
, andlength
fields be excluded from thephoto
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 acolor2 column
. There are a few ways to handle them: 1) Keep them as they are 2) Rename them toprimary_color
andsecondary_color
3) Generate acolors
list from them (the standard way to handle things similar) 4) Generate acolors
list, but make it a set (remove duplicates) 5) Same as 3, but removeNone
as an option for a color 6) Same as 4, but removeNone
as an option for a colorAs of right now, it's handled like in option 3