Granga / etsy-ts

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

Typed `fields` parameter #5

Closed Granga closed 1 year ago

Granga commented 7 years ago

Etsy API allows specifying the exact entity fields to be retrieved. https://www.etsy.com/developers/documentation/getting_started/resources

/v2/listings/active?fields=listing_id,title,price

  1. Let the fields parameter be typed and accept only the names of properties that exist in the entity
  2. If possible, predict the results type according to the properties listed in fields.
Granga commented 1 year ago

No need to have this, V2 is being deprecated.