Skip to content

Latest commit

 

History

History
13 lines (12 loc) · 672 Bytes

FUTURE_GOALS.md

File metadata and controls

13 lines (12 loc) · 672 Bytes

Future Goals

I would love to make the process of building an HTTP request more "natural" by introducing chainability to the Resources/Objects in some way, along with awareness of the available filters for each endpoint.

Ideally, a request might look like:

@client.pages.where(channel_id: 1, name_like: 'history').page(1).limit(10).list
# => https://api.bigcommerce.com/stores/store_hash/v3/content/pages?channel_id=1&name:like=history&page=1&limit=10

Or even

@client.pages.channel_id(1).name_like('history').page(1).limit(1).list
# => https://api.bigcommerce.com/stores/store_hash/v3/content/pages?channel_id=1&name:like=history&page=1&limit=10