Granga / etsy-ts

Etsy API wrapper written in typescript
https://www.npmjs.com/package/etsy-ts
MIT License
37 stars 5 forks source link

Working with resources #4

Closed Granga closed 1 year ago

Granga commented 7 years ago

Etsy API supports ability to query data related to a certain entity, all within one request. https://www.etsy.com/developers/documentation/getting_started/resources

Currently, we can use the "include" parameter as an array of strings. However each of these strings is a name of an entity and there should be some restrictions / types what this array can accept.

Etsy API allows retrieving up to 3 nested associations with this syntax: ?includes=Association[(fieldname[,fieldname...])][:scope][:limit[:offset]][,Assocation...]

Research how other typed Etsy API wrappers have achieved this. If there are no examples find a good solution that allows easy creation of these queries. The query should be typed and it should also predict the exact result type.

Granga commented 1 year ago

No need to have this, V2 is being deprecated.